USEPA / elevatr

An R package for accessing elevation data
Other
204 stars 26 forks source link

Failure to install from Cran-repo, "object 'wktk is not exported by 'namespace::sp'" #52

Closed Silviculturalist closed 3 years ago

Silviculturalist commented 3 years ago

sessionInfo :
`R version 3.6.0 (2019-04-26) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS 10.15.6

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

loaded via a namespace (and not attached): [1] compiler_3.6.0 tools_3.6.0 yaml_2.2.1`

`installing the source package ‘elevatr’

trying URL 'https://cran.rstudio.com/src/contrib/elevatr_0.3.4.tar.gz' Content type 'application/x-gzip' length 408673 bytes (399 KB)

downloaded 399 KB

The downloaded source packages are in ‘/private/var/folders/dl/t0tty2rx6n3ft5qmnht_v8rnpg83bb/T/RtmpHytJwh/downloaded_packages’`

jhollist commented 3 years ago

Sorry you are having problems with the install. I am pretty sure this is do to your R version. 3.6.0 is pretty old and in the two years since it's release there have been some major changes to sp and the underlying libraries (GDAL and PROJ). Try updating your R version and try again.

On Wed, Apr 7, 2021, 4:06 AM Silviculturalist @.***> wrote:

sessionInfo : `R version 3.6.0 (2019-04-26) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS 10.15.6

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

loaded via a namespace (and not attached): [1] compiler_3.6.0 tools_3.6.0 yaml_2.2.1`

`installing the source package ‘elevatr’ trying URL 'https://cran.rstudio.com/src/contrib/elevatr_0.3.4.tar.gz' Content type 'application/x-gzip' length 408673 bytes (399 KB)

downloaded 399 KB

  • installing source package ‘elevatr’ ... package ‘elevatr’ successfully unpacked and MD5 sums checked using staged installation R data * moving datasets to lazyload DB inst ** byte-compile and prepare package for lazy loading Error: object ‘wkt’ is not exported by 'namespace:sp' Execution halted ERROR: lazy loading failed for package ‘elevatr’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/elevatr’ Warning in install.packages : installation of package ‘elevatr’ had non-zero exit status

The downloaded source packages are in

‘/private/var/folders/dl/t0tty2rx6n3ft5qmnht_v8rnpg83bb/T/RtmpHytJwh/downloaded_packages’`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jhollist/elevatr/issues/52, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPYS2SK6MSHNT7ZD7FIS3THQHBPANCNFSM42QIZFGQ .

Silviculturalist commented 3 years ago

You are entirely correct and this solved the issue. I've been updating my packages and Rstudio all this time but never realised R did not update. Thank you, kind stranger!

jhollist commented 3 years ago

Happy to help and glad you got it up and running. Any more problems feel free to open up a new issue.

On Thu, Apr 8, 2021 at 6:42 AM Silviculturalist @.***> wrote:

You are entirely correct and this solved the issue. I've been updating my packages and Rstudio all this time but never realised R did not update. Thank you, kind stranger!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jhollist/elevatr/issues/52#issuecomment-815656426, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPYSYKCEURCHSVU7JUKX3THWCC7ANCNFSM42QIZFGQ .

-- Jeffrey W. Hollister email: @.*** cell: 401 556 4087 https://jwhollister.com