NEONScience/NEON-utilities

neonUtilities Install Errors and Warnings

keramsey opened this issue · 6 comments

Function
Which of the functions in the neonUtilities package is this bug found in?
no package called 'hms'

Describe the bug
I receive the following errors when attempting to install neonUtilities:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'hms'
ERROR: lazy loading failed for package 'neonUtilities'

  • removing 'C:/Users//Documents/R/win-library/3.4/neonUtilities'

The downloaded source packages are in
‘C:\Users<user>\AppData\Local\Temp\RtmpSGzwFh\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA1/R/R-341.0/bin/x64/R" CMD INSTALL -l "C:\Users<user>\Documents\R\win-library\3.4" C:\Users<user>\AppData\Local\Temp\RtmpSGzwFh/downloaded_packages/hms_0.5.0.tar.gz' had status 1
2: In install.packages("neonUtilities") :
installation of package ‘hms’ had non-zero exit status
3: running command '"C:/PROGRA1/R/R-341.0/bin/x64/R" CMD INSTALL -l "C:\Users<user>\Documents\R\win-library\3.4" C:\Users<user>\AppData\Local\Temp\RtmpSGzwFh/downloaded_packages/neonUtilities_1.3.1.tar.gz' had status 1
4: In install.packages("neonUtilities") :
installation of package ‘neonUtilities’ had non-zero exit status
To Reproduce
What function inputs revealed the bug?
install.packages('neonUtilities')
library(neonUtilities)
Expected behavior
A clear and concise description of what you expected to happen.
I expected that neonUtilities would finish installing without errors.
System (please complete the following information):

  • OS: Windows 7 Professional x64
  • OS Version: Service pack 1
  • R Version: 3.4.0

Additional context
Add any other context about the problem here.

It looks to me like this is a problem with the paths on your machine. My best guess is that it's trying to install from a location other than CRAN, and can't find hms there. Try running options()$repos to see where the global option for repositories is pointing, and if it isn't CRAN, redirect it there.

Hmm. You may end up needing to update to R 3.6, but it also might be that the repos you're using arent fully up to date. Try this:
install.packages("neonUtilities", repos="https://cran.rstudio.com/")

Updating to R 3.6.1 seems to have fixed my installation issues.

Great, glad to hear it!