From sfalcon at fhcrc.org  Sun Mar  4 17:18:38 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Sun, 04 Mar 2007 08:18:38 -0800
Subject: [Rd] fortune() in .Rprofile conflicts with R CMD INSTALL
In-Reply-To: <45EAB839.9090203@bfro.uni-lj.si> (Gregor Gorjanc's message of
	"Sun, 04 Mar 2007 13:14:49 +0100")
References: <45EAB839.9090203@bfro.uni-lj.si>
Message-ID: <m2tzx19e3l.fsf@ziti.local>

Gregor Gorjanc <gregor.gorjanc at bfro.uni-lj.si> writes:

> Hello,
>
> This is about fortune package, but I think that might be related also to
> base R, so I am sending to package maintainer and R-devel list.
>
> I have the following in my .Rprofile to break monotony of code writing
>
> library(utils)
> library(fortunes)
> fortune()
> detach("package:fortunes")
>

The quick fix for you is, I believe,

    if (interactive()) {
        library(fortunes)
        fortune()
        detach("package:fortunes")
    }

Whether something could be changed so that R's output doesn't confuse
itself and gcc when doing R CMD INSTALL, seems like it should be
possible.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] fortune() in .Rprofile conflicts with R CMD INSTALL
Seth Falcon