[Rd] Fwd: Using existing envars in Renviron on friendly Windows

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Oct 15 18:37:44 CEST 2021


On Fri, 15 Oct 2021 16:44:28 +0200
Michał Bojanowski <michal2992 using gmail.com> wrote:

> AVAR=${APPDATA}/foo/bar
> 
> Which is a documented way of referring to existing environment
> variables. Now, with that in R I'm getting:
> 
> Sys.getenv("APPDATA")    # That works OK
> [1] "C:\\Users\\mbojanowski\\AppData\\Roaming"
> 
> so OK, but:
> 
> Sys.getenv("AVAR")
> [1] "C:UsersmbojanowskiAppDataRoaming/foo/bar"

Hmm, that

-- 
Best regards,
Ivan



More information about the R-devel mailing list