Murph a écrit :
Jochen Knaus wrote:
.....
Anybody having experiences with Win7 yet?
R 2.10.1 installed today on win7 works fine for this new user. Although the
demos fail with a complaint about unable to "setwd" I suspect it's a
privaleges problem. Win7 is awkward about install privaleges. I suspect my
working directory is in "Admin" land; and I'm trying to execute from
/user/tom If I could figure out a function to have R list my
environmental variables; I could probably figure it out.....
I have two processor on my Toshiba...
Murph
Something like that? (I'm using that for my OCaml-R binding). You also
such code in littler software.
ExcludeVars <- c("R_SESSION_TMPDIR","R_HISTFILE")
IncludeVars <- Sys.getenv()
IncludeVars <- IncludeVars[grep("^R_",names(IncludeVars),perl=TRUE)]
cat('module Standard : Environment = struct\n\n')
cat(' let name="OCaml-R"\n')
cat(' let options = ["--vanilla"; "--slave"]\n')
cat(' let signal_handlers = false\n')
cat(' let env = [\n')
for (i in 1:length(IncludeVars)){
if (names(IncludeVars)[i] %in% ExcludeVars)
next
cat(' "',names(IncludeVars)[i],'", "',IncludeVars[i],'";\n',sep='')
}
cat(" ]\n\n")
cat("end\n")
File standard.R at
http://yziquel.homelinux.org/gitweb/?p=ocaml-r.git;a=tree
or for littler:
http://dirk.eddelbuettel.com/code/littler.html
All the best,
--
Guillaume Yziquel
http://yziquel.homelinux.org/
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.