Skip to content
Prev 6393 / 21312 Next

[Bioc-devel] BiocStyle on windows with spaces in path names

On Mon, Oct 6, 2014 at 6:48 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
It works to set environment variables in either .onLoad() or
.onAttach().  I verified with:

.onLoad <- function(libname, pkgname) {
  Sys.setenv(FOO="hello")
}

.onAttach <- function(libname, pkgname) {
  Sys.setenv(BAR="world")
}

that both environment variables 'FOO' and 'BAR' are available to the
vignette itself and have their values set as expected.  I've tried
with vignette engines knitr::Rmd and R.rsp::rsp and in both cases the
build and installed vignettes show FOO=hello and BAR=world.

Given that this works, I would be surprised if you cannot set
TEXINPUTS such that texi2dvi() et al. won't see it.

/Henrik