USEPA / elevatr

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

Error Installing #53

Closed koustubhsharma closed 3 years ago

koustubhsharma commented 3 years ago

Getting the following error when trying to install the package. Complains about 'wkt' when using CRAN repository or a locally downloaded zip file. I am using R version 3.6.0 (2019-04-26), Platform: x86_64-w64-mingw32/x64 (64-bit), Running under: Windows 10 x64 (build 19041).

Matrix products: default WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/koust/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)

jhollist commented 3 years ago

3.6.0 is pretty old. I test elevatr only back to the most recent "old release" which is 3.6.3. Current release of R is 4.0.5. If you update your version of R you shouldn't have any issues.

Let me know if this solves the issue.

On Sat, Apr 17, 2021 at 11:17 PM koustubhsharma @.***> wrote:

Getting the following error when trying to install the package. Complains about 'wkt' when using CRAN repository or a locally downloaded zip file. I am using R version 3.6.0 (2019-04-26), Platform: x86_64-w64-mingw32/x64 (64-bit), Running under: Windows 10 x64 (build 19041).

Matrix products: default WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/koust/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)

  • 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 'C:/Users/koust/OneDrive/Documents/R/win-library/3.6/elevatr'
  • restoring previous 'C:/Users/koust/OneDrive/Documents/R/win-library/3.6/elevatr' Warning in install.packages : installation of package ‘C:/Users/koust/Downloads/elevatr_0.3.4.tar.gz’ had non-zero exit status

— 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/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPYS3XVSMCYAMNTPINCH3TJJFK5ANCNFSM43DXUT7Q .

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

jhollist commented 3 years ago

@koustubhsharma I am trying to clean out some of my long standing issues. Are you still having problems with installation? I did push a new version of elevatr to CRAN that might solve your problems.

If I don't hear back in a few weeks I will close out this issue.