You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I try to run the function: setup_r5(), I receive the following error: "Error in setup_r5(data_path = data_path) :
This package requires the Java SE Development Kit 11.
Please update your Java installation. The jdk 11 can be downloaded from either:
oracle: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html"
I have already downloaded the jdk 11, but I still keep receiving this error. I am wondering how to fix this issue so that I can at least run the sample data that you have provided in the package for a tutorial. I have asked Stack Overflow and none of their solutions have worked for me.
Reproducible example here
# insert reproducible example here
library(r5r)
# build transport networkdata_path<- system.file("extdata/poa", package="r5r")
r5r_core<- setup_r5(data_path=data_path, temp_dir=TRUE) # This is the part in your tutorial that provides me with the error.# load origin/destination pointspoints<- read.csv(file.path(data_path, "poa_hexgrid.csv"))
### Situation report here```rr5r::r5r_sitrep()
r5r::r5r_sitrep()
$r5r_package_version
[1] ‘1.1.0’
$r5_jar_versioncharacter(0)
$java_version
[1] "21.0.2"$set_memory
[1] "-Xmx2G"$session_infoRversion4.3.2 (2023-10-31ucrt)
Platform:x86_64-w64-mingw32/x64 (64-bit)
Runningunder:Windows11 x64 (build22621)
Matrixproducts:defaultlocale:
[1] LC_COLLATE=English_UnitedStates.utf8
[2] LC_CTYPE=English_UnitedStates.utf8
[3] LC_MONETARY=English_UnitedStates.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_UnitedStates.utf8timezone:America/Halifaxtzcodesource:internalattachedbasepackages:
[1] statsgraphicsgrDevicesutilsdatasetsmethodsbaseotherattachedpackages:
[1] rJava_1.0-11osmextract_0.5.0ggplot2_3.4.4
[4] data.table_1.15.0sf_1.0-15r5r_1.1.0loadedviaa namespace (andnotattached):
[1] vctrs_0.6.5httr_1.4.7cli_3.6.2
[4] rlang_1.1.3DBI_1.2.2KernSmooth_2.23-22
[7] generics_0.1.3glue_1.7.0backports_1.4.1
[10] colorspace_2.1-0e1071_1.7-14scales_1.3.0
[13] fansi_1.0.6grid_4.3.2munsell_0.5.0
[16] classInt_0.4-10tibble_3.2.1lifecycle_1.0.4
[19] compiler_4.3.2dplyr_1.1.4Rcpp_1.0.12
[22] pkgconfig_2.0.3rstudioapi_0.15.0R6_2.5.1
[25] class_7.3-22tidyselect_1.2.0utf8_1.2.4
[28] curl_5.2.0pillar_1.9.0magrittr_2.0.3
[31] checkmate_2.3.1withr_3.0.0tools_4.3.2
[34] proxy_0.4-27gtable_0.3.4units_0.8-5
The text was updated successfully, but these errors were encountered:
Hi. Thanks for opening this issue. If you read the output of r5r::r5r_sitrep(), you will see that R is not detectiong you Java JDK v11, bus instead it detects v21.
$java_version
[1] "21.0.2"
The easiest solution here would be to install the dev version of {r5r}, which uses JDK 21. You can do this with the code below. Please let me know if this works for you.
Hi there,
Brief description of the problem:
Whenever I try to run the function: setup_r5(), I receive the following error: "Error in setup_r5(data_path = data_path) :
This package requires the Java SE Development Kit 11.
Please update your Java installation. The jdk 11 can be downloaded from either:
I have already downloaded the jdk 11, but I still keep receiving this error. I am wondering how to fix this issue so that I can at least run the sample data that you have provided in the package for a tutorial. I have asked Stack Overflow and none of their solutions have worked for me.
Reproducible example here
The text was updated successfully, but these errors were encountered: