in setup_env() of our
script.sh.erb for the interactive RStudio app, we export $R_LIBS_USER using the %v specifier…
…and it seems to work as desired. But curiously, and somewhat intermittently, a literal
%v directory will be created in addition to the expected expanded directory (either immediately, or after executing a few commands in Rstudio)…
[jason ~/R ]$ ls -ald * drwxr-xr-x 2 jason jason 10 Jan 15 12:21 3.5.2 drwxr-xr-x 2 jason jason 10 Jan 15 12:21 %v
…and changing R_LIBS_USER to use other specifiers will have a similar outcome. Poking through OOD’s code for this app, I feel like it must be an RStudio bug, although my google-fu has turned up no other complainants.
Can anyone verify if their app does something similar?