[Rd] cleanup_pkg() in tools:::.build_packages() is broken

From: Hervé Pagès <hpages_at_fhcrc.org>
Date: Fri, 01 Oct 2010 18:31:43 -0700


Hi,

The cleanup_pkg() function defined the big tools:::.build_packages() function in tools/R/build.R is currently broken. When Makefiles are used cleanup_pkg() doesn't clean anything because of the way system2() is called.

For example, the call to Ssystem() on line 304 (Ssystem is a silent version of system2) is basically trying to do this:

> system2(paste(Sys.getenv("MAKE", "make"), makefiles, "clean"))
   sh: make -f '/home/hpages/R-2.12/etc//Makeconf' -f Makefile clean: not found

But it seems that with this new system2(), the arguments to the system command need to be passed separately thru the 'args' argument.

Cheers,
H.

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages_at_fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat 02 Oct 2010 - 01:34:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Oct 2010 - 19:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive