Albluca / ElPiGraph.R

An R package to construct Elastic Principal Graphs
GNU General Public License v3.0
22 stars 9 forks source link

'ggforce' dependency require installation from command line of the libudunits2-dev package #18

Closed charles-bernard closed 6 years ago

charles-bernard commented 6 years ago

Hi Luca,

I just wanted to warn you that when I tried to install your last push from GitHub, I had an error message concerning the installation of the R package "ggforce", which itselfs depends on the "units" R package:

  libudunits2.so not found!

  If the udunits2 library is installed in a non-standard location, use:

    --configure-args='--with-udunits2-lib=/usr/local/lib'

  for example, if the library was not found, and/or

    --configure-args='--with-udunits2-include=/usr/include/udunits2'

  if the header was not found, replacing paths with appropriate values for your
  installation. You can alternatively use the UDUNITS2_INCLUDE and UDUNITS2_LIBS
  environment variables.

  If udunits2 is not installed, please install it.
  It is required for this package.
--------------------------------------------------------------------------------

See `config.log' for more details
ERROR: configuration failed for package ‘units’
* removing ‘/home/charles/R/x86_64-pc-linux-gnu-library/3.4/units’
Installation failed: Command failed (1)
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL '/tmp/Rtmp6YDibV/devtools53ad1344232/ggforce'  \
  --library='/home/charles/R/x86_64-pc-linux-gnu-library/3.4' --install-tests 

ERROR: dependency ‘units’ is not available for package ‘ggforce’
* removing ‘/home/charles/R/x86_64-pc-linux-gnu-library/3.4/ggforce’
Installation failed: Command failed (1)
essai de l'URL 'https://cran.rstudio.com/src/contrib/infotheo_1.2.0.tar.gz'
Content type 'application/x-gzip' length 8290 bytes

Fixed it by installing the libudunits2-dev package from command line. In case you would like to mention this potential error in your Readme, and indicates as well the fix, then you can check out this link for the command of installation on Linux and MacOS: https://stackoverflow.com/questions/42287164/install-udunits2-package-for-r3-3

Have a nice day !

I will close the issue as soon as you answered to me!

Cheers,

Charles

Albluca commented 6 years ago

Hi Charles,

many thanks for that! Yeah, ggforce can be a bit annoying ... I will include a comment in the readme asap :)

BW, Luca

charles-bernard commented 6 years ago

You're welcome :)