Closed TTTPOB closed 2 years ago
The best solution is to make another wrapper script for radian.
Sorry, didn't have time to reply your other questions. Will come back to you.
The best solution is to make another wrapper script for radian.
Sorry, didn't have time to reply your other questions. Will come back to you.
Thank your for your reply, I saw pull requests of radian wrapper in nixpkgs repo and I am using it, I am happy with it now
and after having a closer look of radian code, I think I was wrong about how it works, it seems it working via libR.so and ffi instead of opening a R console and interact with it?
and after having a closer look of radian code, I think I was wrong about how it works, it seems it working via libR.so and ffi instead of opening a R console and interact with it?
Exactly.
thank you and I think I have known what I have to do
recently I am exploring using nix to manage my environment.
edit start:
I've realized that radian find R not by path but by
rchitect.Rhome()
, but what is the advantage to do this over just useR
executable in the firstPATH
containingR
?If just reading
PATH
is not acceptable (why?!), maybe we can add an option to override this behavior? likeradian --wrapper /path/to/wrapper
to let users make some modification of R session before the start the R?Or I think I should make
R
in nix return theR_HOME
in wrapper location?edit end
basically it create a R wrapper that include all packages I wanted and wrote into environment configuration file into
R_LIBS_SITE
, and all packages are well managed as well as their system dependencies/R dependencies.But it seems that
radian
will not recognize theR_LIBS_SITE
set in that wrapper.I've search this repo and have not found evidence that radian reset
R_LIBS_SITE
or bypass R wrapper script (as far as I know, plain R install also has abin/R
which is a wrapper)other info