diff --git a/DESCRIPTION b/DESCRIPTION index ea573e6..c9c854b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: dssrip2 Title: DSS R Interface Project (2) -Version: 0.8-0 +Version: 0.8-1 Authors@R: c( person("Michael", "Koohafkan", , "michael.c.koohafkan@usace.army.mil", role = c("aut", "cre")), person("Evan", "Heisman", , "evan.a.heisman@usace.army.mil", role = c("aut")), diff --git a/R/initialize.r b/R/initialize.r index 59f80ab..41ca105 100644 --- a/R/initialize.r +++ b/R/initialize.r @@ -97,7 +97,7 @@ dss_connect = function(dss_home = getOption("dss.home"), assign("DSS_CONNECTED", TRUE, hecJavaConnectionDB) # check JVM memory - java_mem = J("java.lang.Runtime")$getRuntime()$totalMemory()*1e-6 + java_mem = J("java.lang.Runtime")$getRuntime()$maxMemory() * 1e-6 if (java_mem < 1000 && isFALSE(quietly)) { warning("JVM was initialized with less than 1GB total memory ", "which is likely not sufficient for DSS file operations. ", diff --git a/README.md b/README.md index 42c0bc3..516a72e 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ You can install the `{dssrip2}` directly using remotes::install_github("mkoohafkan/dssrip2") ``` +To build the vignettes on install, use the argument `build_vignettes = TRUE`. + ### Monolith `{dssrip2}` can connect to HEC-Monolith libraries using