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

Issue with Lazy Loading of package during install #13

Open
agnesquinn opened this issue Feb 21, 2018 · 1 comment
Open

Issue with Lazy Loading of package during install #13

agnesquinn opened this issue Feb 21, 2018 · 1 comment

Comments

@agnesquinn
Copy link

When installing this package on R-3.4.3 on windows 7 I get an error attempting to perform install_github("callumgwtaylor/hdxr")

  • installing source package 'hdxr' ...
    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'
    Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT'
    Warning in as.POSIXlt.POSIXct(x, tz) :
    unknown timezone 'America/New_York'
    ** R
    ** 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 'hdxr'
  • removing 'XXXX/XXXX/library/hdxr'
    In R CMD INSTALL
    Installation failed: Command failed (1)
@callumgwtaylor
Copy link
Owner

Hi Agnes,

I'm not 100% certain what's happening there, but I've got a couple of thoughts.

I've just uninstalled and reinstalled the package on my windows laptop with no issues. I'm on R 3.4 also on Windows (Windows 10).

Have you already tried restarting R and running it from a clean environment?

I think this may not be an issue from hdxr itself. I've just googled that message and found an identical error:

https://twitter.com/thosjleeper/status/823836088712228864

They went through the issues they found on this github thread:

IQSS/dataverse-client-r#11

In essence, the problem that time was the user had problems with their version of R, as they were unable to load all packages due to not having full administrative rights on their computer. Is there any chance you're trying this on a uni/company owned computer?

At the moment I'd suggest:

Trying to install it on a clean environment (restart R, then run devtools::install_github("callumgwtaylor/hdxr") )

Consider reinstalling R (big ask I know, but seemed to be what Hadley Wickham suggested on the last time this error came up)

See if you don't have full control about installing dependencies on your version of R (installing hdxr installs a few tidyverse packages it requires, plus sf)

Please let me know if there's anything you'd like me to try. As I said, installing it worked fine for me just now, and I'll try updating R to see if I get the same issue this weekend.

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

2 participants