mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
rstudio: fix loading of project-specific .Rprofile
This commit is contained in:
parent
68f936b638
commit
16998dd60c
1 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ runCommand (rstudio.name + "-wrapper")
|
|||
# with the wrapped one, however, RStudio internally overrides
|
||||
# R_LIBS_SITE. The below works around this by turning R_LIBS_SITE
|
||||
# into an R file (fixLibsR) which achieves the same effect, then
|
||||
# uses R_PROFILE_USER to load this code at startup in RStudio.
|
||||
# uses R_PROFILE to load this code at startup in RStudio.
|
||||
fixLibsR = "fix_libs.R";
|
||||
}
|
||||
(
|
||||
|
|
@ -48,7 +48,7 @@ runCommand (rstudio.name + "-wrapper")
|
|||
if rstudio.server then
|
||||
''
|
||||
makeWrapper ${rstudio}/bin/rsession $out/bin/rsession \
|
||||
--set R_PROFILE_USER $out/$fixLibsR --set FONTCONFIG_FILE ${fontconfig.out}/etc/fonts/fonts.conf
|
||||
--set R_PROFILE $out/$fixLibsR --set FONTCONFIG_FILE ${fontconfig.out}/etc/fonts/fonts.conf
|
||||
|
||||
makeWrapper ${rstudio}/bin/rserver $out/bin/rserver \
|
||||
--add-flags --rsession-path=$out/bin/rsession
|
||||
|
|
@ -63,7 +63,7 @@ runCommand (rstudio.name + "-wrapper")
|
|||
''}
|
||||
|
||||
makeWrapper ${rstudio}/bin/rstudio $out/bin/rstudio \
|
||||
--set R_PROFILE_USER $out/$fixLibsR
|
||||
--set R_PROFILE $out/$fixLibsR
|
||||
''
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue