RossDwyer / VTrack

V-Track: software for analysing and visualising animal movement from acoustic telemetry detections
https://cran.r-project.org/web/packages/VTrack/index.html
13 stars 5 forks source link

issues installing update VTrack #21

Closed mauritsvzb closed 1 year ago

mauritsvzb commented 2 years ago

I'm experiencing issues when trying to update the VTrack package. The underlying issue seems to be the 'spdep' package.

devtools::install_github("rossdwyer/VTrack") Downloading GitHub repo rossdwyer/VTrack@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: spdep (1.2-2 -> 1.2-3) [CRAN]

Enter one or more numbers, or an empty line to skip updates: Error: Failed to install 'VTrack' from GitHub: lazy-load database '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/withr/R/withr.rdb' is corrupt In addition: Warning messages: 1: In pkgbuild::build(pkgdir, dest_path = dest_path, binary = FALSE, : restarting interrupted promise evaluation 2: In pkgbuild::build(pkgdir, dest_path = dest_path, binary = FALSE, : internal error -3 in R_decompress1

Note that it doesn't wait for me to choose an option, either 1-4.

When i run 'Install.packages("spdep") and select 'Yes', following error emerges:

install.packages("spdep")

There is a binary version available but the source version is later: binary source needs_compilation spdep 1.2-2 1.2-3 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes installing the source package ‘spdep’

trying URL 'https://cran.rstudio.com/src/contrib/spdep_1.2-3.tar.gz' Content type 'application/x-gzip' length 4047140 bytes (3.9 MB)

downloaded 3.9 MB

The downloaded source packages are in ‘/private/var/folders/cb/gj9pv0x5429dvzrnbqk9rlw40000gn/T/Rtmp0tSh5p/downloaded_packages’

Any advice how to solve this is greatly appreciated.

Thanks, Maurits

mauritsvzb commented 2 years ago

Ok it works now after updating R and RStudio, along with 40 packages that are used by VTRack.

RossDwyer commented 1 year ago

Thanks Maurits, great that this issue was fixed with updating R ad RStudio