Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with OpenStreetMap Installation #14

Open
akarsteve opened this issue Nov 22, 2021 · 2 comments
Open

Trouble with OpenStreetMap Installation #14

akarsteve opened this issue Nov 22, 2021 · 2 comments

Comments

@akarsteve
Copy link

After installing OpenStreetMap, i cant access the functions;

Below ate the returned errors:

# load package

pacman::p_load(tidyverse, OpenStreetMap)
Installing package into ‘C:/Users/Akarstephen/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.1:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.1/PACKAGES'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/OpenStreetMap_0.3.4.zip'
Content type 'application/zip' length 2264659 bytes (2.2 MB)
downloaded 2.2 MB

package ‘OpenStreetMap’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Akarstephen\AppData\Local\Temp\RtmpygFpKr\downloaded_packages

OpenStreetMap installed
Warning message:
In pacman::p_load(tidyverse, OpenStreetMap) : Failed to install/load:
OpenStreetMap

map <- OpenStreetMap::openmap(

  • upperLeft = c(max(linelist$lat, na.rm=T), max(linelist$lon, na.rm=T)), # limits of basemap tile
  • lowerRight = c(min(linelist$lat, na.rm=T), min(linelist$lon, na.rm=T)),
  • zoom = NULL,
  • type = c("osm", "stamen-toner", "stamen-terrain", "stamen-watercolor", "esri","esri-topo")[1])
    Error: .onLoad failed in loadNamespace() for 'rJava', details:
    call: fun(libname, pkgname)
    error: JAVA_HOME cannot be determined from the Registry

autoplot.OpenStreetMap(map)
Error in autoplot.OpenStreetMap(map) :
could not find function "autoplot.OpenStreetMap"

@blackburnstat
Copy link

The package now seems to completely crash my system each time I load it (RStudio 2022.02.3, R 4.2.0).
I had deleted and reinstalled the package because I was getting a similar error to Akar above.

@apsteinmetz
Copy link

apsteinmetz commented Aug 4, 2022

Something is bad with Java. Version 8 (build 1.8.0_341-b10)

Solution: reinstall Java and reinstall rJava R package.

Error: package or namespace load failed for ‘OpenStreetMap’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.

sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants