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

Trouble installing dataverse R package #11

Closed
pdurbin opened this issue Jan 20, 2017 · 9 comments
Closed

Trouble installing dataverse R package #11

pdurbin opened this issue Jan 20, 2017 · 9 comments
Labels

Comments

@pdurbin
Copy link
Member

pdurbin commented Jan 20, 2017

Hi! At IQSS/dataverse#2700 (comment) @monogan reported some trouble getting the dataverse package installed on Windows and I was thinking that the readme of this repo would explain the best way to get support but it's non-obvious to me. Can this be clarified in the readme? Thanks!

p.s. If @monogan could get some assistance that would be great as well!

@leeper
Copy link
Member

leeper commented Jan 21, 2017

I think this is an installer problem (i.e., an issue in the ghit package that I'm working on. Temporary fix is either:

devtools::install_github("IQSS/dataverse-client-r")
# or
ghit::install_github("IQSS/dataverse-client-r", build_vignettes = FALSE)

Let me know if that doesn't work, @monogan.

Update: ghit v0.2.15 (en route to CRAN) fixes this.

@leeper leeper closed this as completed Jan 21, 2017
@ghost
Copy link

ghost commented Jan 24, 2017

Hi Thomas @leeper. Unforutnately, that's still not working. I tried each, and you can see the error messages below afterwards. Any other ideas? Could it be something going on with my computer? I can't use my regular workspace right now, as my MacBook Air's OS is too out of date to update R (or even to update the OS), so I'm stuck with a Windows machine that's provided at my flat. More than likely it's 100% on my end. Thank you for all of your help.

> devtools::install_github("IQSS/dataverse-client-r")
Downloading GitHub repo IQSS/dataverse-client-r@master
from URL https://api.github.com/repos/IQSS/dataverse-client-r/zipball/master
Installing dataverse
"C:/Users/COX'SG~1/DOCUME~1/R/R-33~1.2/bin/x64/R" --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL "C:/Users/Cox's  \
  Ground/AppData/Local/Temp/Rtmpw9u7u6/devtools49417c23ee/IQSS-dataverse-client-r-bd8d7c1"  \
  --library="C:/Users/Cox's Ground/Documents/R/R-3.3.2/library"  \
  --install-tests 

* installing *source* package 'dataverse' ...
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'Europe/London'
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT'
Warning in as.POSIXlt.POSIXct(x, tz) :
  unknown timezone 'America/New_York'
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT'
Warning in as.POSIXlt.POSIXct(x, tz) :
  unknown timezone 'America/New_York'
** R
** inst
** tests
** preparing package for lazy loading
Error in if (file.size(codeFile) == file.size(loaderFile)) warning("package seems to be using lazy loading already") else { : 
  missing value where TRUE/FALSE needed
ERROR: lazy loading failed for package 'dataverse'
* removing 'C:/Users/Cox's Ground/Documents/R/R-3.3.2/library/dataverse'
Error: Command failed (1)


> ghit::install_github("IQSS/dataverse-client-r", build_vignettes = FALSE)
Error in build_and_insert(p$pkgname, d, vers, build_args, verbose = verbose) : 
  Package build for dataverse failed!
In addition: Warning message:
running command '"C:/Users/COX'SG~1/DOCUME~1/R/R-33~1.2/bin/x64/R" CMD build  --no-build-vignettes C:\Users\COX'SG~1\AppData\Local\Temp\Rtmpw9u7u6\dataverse-client-r4947786fa1' had status 1 

@leeper
Copy link
Member

leeper commented Jan 24, 2017

What version of R do you have?

@ghost
Copy link

ghost commented Jan 24, 2017

@leeper I've got R 3.3.2. I tried this on both 32 and 64 bit.

@leeper
Copy link
Member

leeper commented Jan 24, 2017

@monogan I've never seen this before, so I'm firing up the bat signal: https://twitter.com/thosjleeper/status/823836088712228864

@leeper leeper reopened this Jan 24, 2017
@leeper leeper changed the title Unclear how to get support for dataverse R package Trouble installing dataverse R package Jan 24, 2017
@ghost
Copy link

ghost commented Jan 24, 2017

@leeper Thank you. This is so strange; I have no idea what's going on. My apologies for seeming to be a "problem magnet" on this one.

@leeper
Copy link
Member

leeper commented Jan 24, 2017

@monogan No problem. Consensus seems to be that you should uninstall and reinstall R, as something seems to be fairly fundamentally broken.

@ghost
Copy link

ghost commented Jan 25, 2017

@leeper @pdurbin @djbrooke @mheppler I am happy to report that I was now able to get @leeper 's code to work well, as Thomas posted here (IQSS/dataverse#2700 (comment)).

In case the backstory is interesting: Following Thomas & company's advice, I tried reinstalling R, at which point I learned that I only had partial administrative control over this computer. Apparently that wasn't sufficient for installing Thomas's "dataverse" package. With full administrative control, I was finally able to get it going, once I got all of the dependencies loaded. So, yes, @leeper 's code works, and nothing has changed with the switch to new Dataverse. Thank you for your patience with me and for all of your assistance.

@leeper
Copy link
Member

leeper commented Jan 25, 2017

@monogan Great to hear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants