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"
After installing OpenStreetMap, i cant access the functions;
Below ate the returned errors:
# load package
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(
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"