More Capability for Capabilities

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

More Capability for Capabilities

Paul Grosu
Hi Dario,

Here are another couple of other fun functions you can utilize besides the
ones Dirk recommended :)

extSoftVersion()
grSoftVersion()

Below is an example:

> grSoftVersion()
     cairo                   libpng                     jpeg
  "1.10.2"                 "1.6.16"                    "9.1"
                 libtiff
"LIBTIFF, Version 4.0.3"

> extSoftVersion()
      zlib                  bzlib             xz
   "1.2.8"   "1.0.6, 6-Sept-2010"        "5.0.8"
      PCRE                    ICU            TRE
"8.36 2014-09-26"          "53.1" "TRE 0.8.0 R_fixes (BSD)"
     iconv
"win_iconv"

Hope it helps,
~p

On Thu, Jan 28, 2016 at 6:32 AM, Dirk Eddelbuettel <[hidden email]> wrote:

>
> 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@max:~$ r -e 'print(capabilities()[["png"]])'
>   [1] TRUE
>   edd@max:~$ ldd /usr/lib/R/modules/R_X11.so | grep png
>           libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0
> (0x00007f150324d000)
>   edd@max:~$ dpkg -S /lib/x86_64-linux-gnu/libpng12.so.0
>   libpng12-0:amd64: /lib/x86_64-linux-gnu/libpng12.so.0
>   edd@max:~$
>
> Dirk
>
> [1] Presumably only minor numbers change while the ABI remains the same.
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: More Capability for Capabilities

Martin Maechler
>>>>> Paul Grosu <[hidden email]>
>>>>>     on Thu, 28 Jan 2016 07:53:13 -0500 writes:

    > Hi Dario,
    > Here are another couple of other fun functions you can utilize besides the
    > ones Dirk recommended :)

    > extSoftVersion()
    > grSoftVersion()

    > Below is an example:

    >> grSoftVersion()
    > cairo                   libpng                     jpeg
    > "1.10.2"                 "1.6.16"                    "9.1"
    > libtiff
    > "LIBTIFF, Version 4.0.3"

    >> extSoftVersion()
    > zlib                  bzlib             xz
    > "1.2.8"   "1.0.6, 6-Sept-2010"        "5.0.8"
    > PCRE                    ICU            TRE
    > "8.36 2014-09-26"          "53.1" "TRE 0.8.0 R_fixes (BSD)"
    > iconv
    > "win_iconv"

    > Hope it helps,
    > ~p

Sure does, thank you.

What also helps is reading  RFM :

The thread started with 'capabilities' and
  ?capabilities

has a prominent link to  extSoftVersion
and that itself mentions  grSoftVersion ... (and few more such functions!).

Martin

    > On Thu, Jan 28, 2016 at 6:32 AM, Dirk Eddelbuettel <[hidden email]> wrote:

    >>
    >> 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@max:~$ r -e 'print(capabilities()[["png"]])'
    >> [1] TRUE
    >> edd@max:~$ ldd /usr/lib/R/modules/R_X11.so | grep png
    >> libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0
    >> (0x00007f150324d000)
    >> edd@max:~$ dpkg -S /lib/x86_64-linux-gnu/libpng12.so.0
    >> libpng12-0:amd64: /lib/x86_64-linux-gnu/libpng12.so.0
    >> edd@max:~$
    >>
    >> Dirk
    >>
    >> [1] Presumably only minor numbers change while the ABI remains the same.
    >>
    >> --
    >> http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]
    >>
    >> ______________________________________________
    >> [hidden email] mailing list
    >> https://stat.ethz.ch/mailman/listinfo/r-devel
    >>

    > [[alternative HTML version deleted]]

    > ______________________________________________
    > [hidden email] mailing list
    > https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: More Capability for Capabilities

Dario Strbenac-2
Good day,

To clarify, extSoftVersion and grSoftVersion first became available in R 3.2.3. The university's servers are running R 3.2.2, so I didn't see it.

--------------------------------------
Dario Strbenac
PhD Student
University of Sydney
Camperdown NSW 2050
Australia

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel