Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure when trying to install rnsf package with install_github #4

Open
LunaSare opened this issue Oct 21, 2018 · 0 comments
Open

failure when trying to install rnsf package with install_github #4

LunaSare opened this issue Oct 21, 2018 · 0 comments

Comments

@LunaSare
Copy link

I'm getting the following error

Warning: file ‘grants.rda’ has magic number 'versi'
  Use of save versions prior to 2 is deprecated
Error in load(zfile, envir = envir) :
  bad restore file magic number (file may be corrupted) -- no data loaded
ERROR: lazydata failed for package ‘rnsf’

I browsed a bit and I found that it is recommended to save R package data with devtools::use_data(grants, internal = FALSE), to avoid bad configuration of files.

Here's the whole installation log:

> devtools::install_github("bomeara/rnsf")  # installing package is not working so downloaded data file for now
Downloading GitHub repo bomeara/rnsf@master
from URL https://api.github.com/repos/bomeara/rnsf/zipball/master
Installing rnsf
trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.5/tm_0.7-5.tgz'
Content type 'application/x-gzip' length 1081502 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

Installing tm
Warning: unable to access index for repository https://datacube.wu.ac.at/bin/macosx/el-capitan/contrib/3.5:
  cannot open URL 'https://datacube.wu.ac.at/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.5/NLP_0.2-0.tgz'
Content type 'application/x-gzip' length 387932 bytes (378 KB)
==================================================
downloaded 378 KB

Installing NLP
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T/RtmpyqELYw/devtools51d2a9f66b5/NLP'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library'  \
  --install-tests

* installing *binary* package ‘NLP’ ...
* DONE (NLP)
Warning: unable to access index for repository https://datacube.wu.ac.at/bin/macosx/el-capitan/contrib/3.5:
  cannot open URL 'https://datacube.wu.ac.at/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.5/slam_0.1-43.tgz'
Content type 'application/x-gzip' length 201432 bytes (196 KB)
==================================================
downloaded 196 KB

Installing slam
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T/RtmpyqELYw/devtools51d2a7cd9b0/slam'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library'  \
  --install-tests

* installing *binary* package ‘slam’ ...
* DONE (slam)
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T/RtmpyqELYw/devtools51d4687a2d5/tm'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library'  \
  --install-tests

* installing *binary* package ‘tm’ ...
* DONE (tm)
trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.5/wordcloud_2.6.tgz'
Content type 'application/x-gzip' length 229178 bytes (223 KB)
==================================================
downloaded 223 KB

Installing wordcloud
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T/RtmpyqELYw/devtools51d23016153/wordcloud'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library'  \
  --install-tests

* installing *binary* package ‘wordcloud’ ...
* DONE (wordcloud)
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T/RtmpyqELYw/devtools51d707c2bab/bomeara-rnsf-2fe2256'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library'  \
  --install-tests

* installing *source* package ‘rnsf’ ...
** R
** data
*** moving datasets to lazyload DB
Warning: file ‘grants.rda’ has magic number 'versi'
  Use of save versions prior to 2 is deprecated
Error in load(zfile, envir = envir) :
  bad restore file magic number (file may be corrupted) -- no data loaded
ERROR: lazydata failed for package ‘rnsf’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rnsf’
Installation failed: Command failed (1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant