From edd at debian.org  Thu Jan 28 12:32:59 2016
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 28 Jan 2016 05:32:59 -0600
Subject: [Rd] More Capability for Capabilities
In-Reply-To: <SN1PR0101MB1439789802ED605A83570AF9CDC10@SN1PR0101MB1439.prod.exchangelabs.com>
References: <SN1PR0101MB1439789802ED605A83570AF9CDC10@SN1PR0101MB1439.prod.exchangelabs.com>
Message-ID: <22185.64619.244907.435831@max.nulle.part>


On 28 January 2016 at 09:00, Dario Strbenac wrote:
| The capabilities function gives a logical result of which features R has been compiled with. Is there a more advanced variety of the function that will give the version number of the library, or its system path, rather than simply TRUE ?

Both can _change_ when dynamic linking is involved [1].  So I'd say that is a job
for your operating system.

Eg on mine and taking png:

  edd at max:~$ r -e 'print(capabilities()[["png"]])'
  [1] TRUE
  edd at max:~$ ldd /usr/lib/R/modules/R_X11.so | grep png
          libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f150324d000)
  edd at max:~$ dpkg -S /lib/x86_64-linux-gnu/libpng12.so.0
  libpng12-0:amd64: /lib/x86_64-linux-gnu/libpng12.so.0
  edd at max:~$ 

Dirk

[1] Presumably only minor numbers change while the ABI remains the same.

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] More Capability for Capabilities
Dirk Eddelbuettel