Installation lodown

3

I'm trying to install the lodown package, but the following error appears and I can not solve:

 ERROR: loading failed
    * removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/archive’
    Installation failed: Command failed (1)
    '/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
      --no-save --no-restore --quiet CMD INSTALL  \
      '/private/var/folders/s0/ydk6pxp96xx9_skq6zsgnz7w0000gn/T/RtmplkTXsa/devtools54239183389/ajdamico-lodown-b902889'  \
      --library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library'  \
      --install-tests 

   ERROR: dependency ‘archive’ is not available for package ‘lodown’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/lodown’
    Installation failed: Command failed (1)

Does anyone have any idea what I should do?

    
asked by anonymous 18.10.2017 / 00:29

2 answers

4

If you are using macOS, you must agree to the license terms (Xcode / iOS license). You can go to the terminal and run the code below:

sudo xcodebuild -license

After that, try to run the code to install the lodown package again:

devtools::install_github("ajdamico/lodown")
    
18.10.2017 / 06:53
4

I just did the test and the installation happened without errors.

library(devtools)
install_github("ajdamico/lodown" , dependencies = TRUE)

The archive package, which gave your installation a problem, was installed with the help of Rtools . You can download here .

    
18.10.2017 / 13:23