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

Installation error (on some machines) #59

Closed
florisvdh opened this issue Feb 18, 2020 · 1 comment
Closed

Installation error (on some machines) #59

florisvdh opened this issue Feb 18, 2020 · 1 comment

Comments

@florisvdh
Copy link
Member

florisvdh commented Feb 18, 2020

With one user, the following happened:

> remotes::install_github("inbo/n2khab", build_vignettes = TRUE)
Downloading GitHub repo inbo/n2khab@master
Installing 2 packages: gdalUtils, R.methodsS3
Installing packages into ‘C:/R/library’
(as ‘lib’ is unspecified)

  There are binary versions available but the source versions are later:
            binary  source needs_compilation
gdalUtils    2.0.3 2.0.3.2             FALSE
R.methodsS3  1.7.1   1.8.0             FALSE

installing the source packages ‘gdalUtils’, ‘R.methodsS3’

trying URL 'https://cloud.r-project.org/src/contrib/gdalUtils_2.0.3.2.tar.gz'
Content type 'application/x-gzip' length 1062906 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cloud.r-project.org/src/contrib/R.methodsS3_1.8.0.tar.gz'
Content type 'application/x-gzip' length 23615 bytes (23 KB)
downloaded 23 KB

* installing *source* package 'gdalUtils' ...
** package 'gdalUtils' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
  there is no package called 'R.methodsS3'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package 'gdalUtils'
* removing 'C:/R/library/gdalUtils'
Error in i.p(...) :
  (converted from warning) installation of package ‘gdalUtils’ had non-zero exit status

This can be remedied by a manual installation of R.methodsS3 beforehand.

However is there some more direct way to prevent this from happening?

@florisvdh
Copy link
Member Author

Closing this issue because it is now probably circumvented:

  1. gdalUtils is not longer a dependency (Version 0.1.2: workaround for read_GRTS***() functions #61). The above issue has been delegated to Windows installation error (missing dependency) gearslaboratory/gdalUtils#26.
  2. Since some time, a safer installation method is recommended on the homepage, which sets an environment variable to make remotes::install_github() more friendly (Pkgdown website: more robust installation instructions #68).
  3. At least two colleagues had success using this installation method in Windows (see e.g. here)

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