Displaying 3 results from an estimated 3 matches for "r_getenv".
Did you mean:
g_getenv
2005 Nov 24
1
Windows R CMD build <pkg> leftovers
A command
R CMD build <pkg>
that fails, e.g., because of C code compilation errors, leaves a
directory %TMPDIR%/Rinst.xxx containing the file R.css. Although R
CMD INSTALL --build cleans up after itself, build does not. A fix is
below. Also, build.in references Rcmd.exe, which I thought was no
longer necessary?
Index: build.in
2001 Jan 25
1
rcmd build
...ary directory
I''ve tried setting TMPDIR to d:/temp via:
1) My Computer properties environment variables,
2) at the command line,
3) in Rprofile, and
4) in .Renviron
with no success. In looking at the Perl script "build" the error seems to come
from:
if($WINDOWS){
$tmpdir = R_getenv("TMPDIR", "/TEMP");
die "Please set TMPDIR to a valid temporary directory\n"
unless (-d $TMPDIR);
$R_exe = "Rterm.exe";
$MAKE = "make";
@knownoptions = ("help|h", "version|v", "binary", "docs:s&quo...
2002 Apr 08
1
Still having a problem with Rcmd - TMPDIR
...attributed to a
Perl bug. The CHECK file was amended in the build and indeed mine has the
line:
unless (-e $tmpdir);
It was thought that the -d was the bug. I added a print statement to CHECK
as per B. Ripley's suggestion:
$WINDOWS = ($OS eq "windows");
if($WINDOWS) {
$TMPDIR = R_getenv("TMPDIR", "/TEMP");
print "tmpdir is $tmpdir\n"; # added line
die "Please set TMPDIR to a valid temporary directory\n"
unless (-e $tmpdir);
$R_exe = "Rterm.exe";
$LATEX = "latex";
$MAKE = "make";
}
The...