[Rd] Windows R CMD build <pkg> leftovers
Martin Morgan
mtmorgan at fhcrc.org
Thu Nov 24 19:28:58 CET 2005
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
===================================================================
--- build.in (revision 36450)
+++ build.in (working copy)
@@ -434,6 +434,8 @@
if($doit && R_system($cmd)) {
$log->error();
$log->print("Installation failed.\n");
+ $log->print("Removing '$libdir'\n");
+ rmtree($libdir);
exit(1);
}
my $R_LIBS = $ENV{'R_LIBS'};
More information about the R-devel
mailing list