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

Windows installation error (missing dependency) #26

Open
florisvdh opened this issue Feb 19, 2020 · 0 comments
Open

Windows installation error (missing dependency) #26

florisvdh opened this issue Feb 19, 2020 · 0 comments

Comments

@florisvdh
Copy link

My colleague works in Windows. He tried to install a package which, at some level, had gdalUtils as a dependency. Installation halted because of the non-installed dependency R.methodsS3 of gdalUtils (it is a dependency of R.utils, on which gdalUtils depends). The problem could be reproduced by re-trying to install gdalUtils on its own:

> install.packages("gdalUtils")
Installing package intoC:/R/library’
(aslibis unspecified)

  There is a binary version available but the source version is later:
          binary  source needs_compilation
gdalUtils  2.0.3 2.0.3.2             FALSE

installing the source packagegdalUtilstrying 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

* 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'

The downloaded source packages are inC:\Users\xxxxxx\AppData\Local\Temp\RtmpcLeGBA\downloaded_packagesWarning message:
In install.packages("gdalUtils") :
  installation of packagegdalUtilshad non-zero exit status

While this is remedied by manually installing R.methodsS3 first, I wonder whether there is some 'better' way to prevent this error from happening? If I understand well, the idea of R package installation is that missing dependencies are automatically installed.

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