63
63
# ## rsc config --full
64
64
# ## rsc log
65
65
# ##
66
- # ## Version: 0.16.2
66
+ # ## Version: 0.16.2-9001
67
67
# ## Copyright: Henrik Bengtsson (2022-2024) and Harry Putnam (2022)
68
68
# ## License: ISC
69
69
@@ -723,7 +723,6 @@ function rs_process_status {
723
723
724
724
function rsession_timeout {
725
725
local timeout
726
- local bfr
727
726
timeout=${RSC_RSESSION_TIMEOUT}
728
727
729
728
if [[ -z " ${timeout} " ]]; then
@@ -739,6 +738,23 @@ function rsession_timeout {
739
738
}
740
739
741
740
741
+ function rsession_timeout_suspend {
742
+ local value
743
+ value=${RSC_RSESSION_TIMEOUT_SUSPEND}
744
+
745
+ if [[ -z " ${value} " ]]; then
746
+ # # The default is to suspend
747
+ value=1
748
+ fi
749
+
750
+ mdebug " rsession timeout suspend: ${value} "
751
+ assert_integer " ${value} "
752
+ RSC_RSESSION_TIMEOUT_SUSPEND=" ${value} "
753
+ export RSC_RSESSION_TIMEOUT_SUSPEND
754
+ echo " ${value} "
755
+ }
756
+
757
+
742
758
function make_rsession_envs {
743
759
local workdir
744
760
local pattern
@@ -777,6 +793,12 @@ function make_rsession_conf {
777
793
# # Number of minutes before a session times out, at which point
778
794
# # the session will either suspend
779
795
echo " session-timeout-minutes=$( rsession_timeout) "
796
+
797
+ # # Indicates whether or not to suspend the session after the
798
+ # # timeout has elapsed. Setting this to false will cause the
799
+ # # session to quit instead of suspending to disk when the session
800
+ # # times out. (Type: bool; Default: 1)
801
+ echo " session-timeout-suspend=$( rsession_timeout_suspend) "
780
802
781
803
# # The default R_LIBS_USER folder that the R session will use
782
804
echo " r-libs-user=${R_LIBS_USER:? } "
@@ -1713,7 +1735,7 @@ if [[ "${action}" == "config" ]]; then
1713
1735
echo " RSTUDIO_CONFIG_HOME: ${RSTUDIO_CONFIG_HOME:- <not set>} "
1714
1736
workdir=$( rstudio_config_home)
1715
1737
echo " RStudio config home: ${workdir} "
1716
- file=${workdir} /rstudio-prefs.json
1738
+ file=${workdir} /rstudio-prefs.json
1717
1739
echo " RStudio user preferences: ${file} [$( file_info " ${file} " ) ]"
1718
1740
if $full && [[ -f " ${file} " ]]; then
1719
1741
cat " ${file} "
0 commit comments