Re: [Rd] make test-Specific?

From: François Pinard <>
Date: Mon 04 Sep 2006 - 23:53:59 GMT

[Gregor Gorjanc]

>In Writing R Extensions manual, section "Testing R code"[1] says:
>"be careful to check if make test-Specific or particularly, cd tests;
>make no-segfault.Rout"

>Actually, make test-Specific also needs "cd tests;" in front.


Allow me a quick comment about using "cd" in Makefiles, reading by.

Whenever possible, prefer "cd DIR && ACTION" to "cd DIR; ACTION". This protects you from ACTION when it has some destructive effect, and DIR either happens to not exist or is just mistyped, in which case ACTION is executed in the current directory.

A little good habit that saved me a few times along all those years! :-)

François Pinard

______________________________________________ mailing list
Received on Tue Sep 05 09:54:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 06 Sep 2006 - 11:39:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.