UCSF-CBI / rstudio-server-controller

RStudio Server Controller (RSC) - A Tool for Launching a Personal Instance of the RStudio Server
https://github.com/UCSF-CBI/rstudio-server-controller
ISC License
4 stars 2 forks source link

ROBUSTNESS: Assert that R also works, e.g. R --version and R --no-echo --quiet -e "1+2" #74

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

We currently assert that R is an executable;

https://github.com/UCSF-CBI/rstudio-server-controller/blob/a2529a046a255d1f2f86c9e2ab818b33134d0044/bin/rsc#L1463-L1465

but that's all the validation of R we do. In rare cases it could be that R is non-working. rsc start could run some basic checks, e.g.

R --version

and

R --no-echo --quiet -e "1+2"

to assert that we have a working R binary. If not, it could give an informative error message.

HenrikBengtsson commented 1 year ago

Added