ropensci / rnoaa

R interface to many NOAA data APIs
https://docs.ropensci.org/rnoaa
Other
330 stars 84 forks source link

Lubridate 1.7.10 -> 1.8.0 Error #402

Open mmmccarthy-USFS opened 2 years ago

mmmccarthy-USFS commented 2 years ago

sessionInfo()

R version 4.0.3 (2020-10-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] processx_3.4.5 compiler_4.0.3 R6_2.5.1 rprojroot_2.0.2 cli_3.0.1 prettyunits_1.1.1 tools_4.0.3 withr_2.4.2
[9] rstudioapi_0.13 curl_4.3.2 crayon_1.4.1 remotes_2.2.0 callr_3.5.1 pkgbuild_1.2.0 ps_1.5.0

remotes::install_github("ropensci/rnoaa")

Downloading GitHub repo ropensci/rnoaa@HEAD These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: lubridate (1.7.10 -> 1.8.0) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 1

lubridate (1.7.10 -> 1.8.0) [CRAN] Installing 1 packages: lubridate

There is a binary version available but the source version is later: binary source needs_compilation lubridate 1.7.10 1.8.0 TRUE

Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/lubridate_1.7.10.zip' Content type 'application/zip' length 1766568 bytes (1.7 MB) downloaded 1.7 MB

package ‘lubridate’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\mmmccarthy\AppData\Local\Temp\RtmpSO7K1S\downloaded_packages √ checking for file 'C:\Users\mmmccarthy\AppData\Local\Temp\RtmpSO7K1S\remotes42f82849351b\ropensci-rnoaa-089b4b5/DESCRIPTION' (737ms)

Error: object 'apikey1' not found Execution halted Error: Failed to install 'rnoaa' from GitHub: (converted from warning) installation of package ‘C:/Users/MMMCCA~1/AppData/Local/Temp/RtmpSO7K1S/file42f82d26abe/rnoaa_1.3.6.94.tar.gz’ had non-zero exit status Registered S3 method overwritten by 'httr': method from
print.cache_info hoardr

mmmccarthy-USFS commented 2 years ago

When trying to update rnoaa package, I keep running into this error with updating lubridate. When I tried to update manually, I can only find the 1.7.10 version rather than the 1.8.0 that is being recommended. Any ideas of how to get around this error?

djhocking commented 2 years ago

I'd suggest restarting your R session to ensure packages are unloaded. Then manually removing current versions of lubridate, httr, and rnoaa using the remove.packages() function. Then either trying to install rnoaa again or first installing lubridate from CRAN, which will default to version 1.8, then installing rnoaa. I haven't see this issue with this package in particular but I've had the problem when installing other packages in the past. Let me know how that goes and paste in any errors you get with that approach.