On Thu, Apr 21, 2011 at 6:44 AM, Pfaff, Bernhard Dr.
wrote:
> Dear list subscriber,
>
> I am quite puzzled by the behaviour of processing Sweave files within an R
> session, i.e.
> Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw
>
> In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT
>
> On Thu, 21 Apr 2011, Pfaff, Bernhard Dr. wrote:
>
> > Dear list subscriber,
> >
> > I am quite puzzled by the behaviour of processing Sweave
> files within an R session, i.e.
> > Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw
> >
> > In the former the environmental variable
> 'SWEAVE_STYLEPA
On Thu, 21 Apr 2011, Pfaff, Bernhard Dr. wrote:
Dear list subscriber,
I am quite puzzled by the behaviour of processing Sweave files within an R
session, i.e.
Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw
In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT =
TRUE' is obeyed (t
Bernd
.Renviron is not being read when you do R CMD ... This is documented,
but still puzzling to me. I solved this by using
Sys.setenv("SWEAVE_STYLEPATH_DEFAULT" = "TRUE")
in my .Rprofile (which is being read by R CMD ...). If you were on
linux you could also put it inside your shell profile
Dear list subscriber,
I am quite puzzled by the behaviour of processing Sweave files within an R
session, i.e.
Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw
In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT = TRUE' is
obeyed (this is set in etc/Renviron.site as well as under t