Re: [R] Package vignette and build

From: A.J. Rossini <blindglobe_at_gmail.com>
Date: Thu 24 Mar 2005 - 00:22:43 EST

Yes, you need the package installed first.

Something like:

R CMD build --no-vignettes DLM
R CMD install DLM.....
R CMD build DLM
R CMD install DLM.....

At least you had to do this with 1.9.1, can't recall looking again since then.

On Tue, 22 Mar 2005 11:23:36 -0600 (CST), Giovanni Petris <GPetris@uark.edu> wrote:
>
> Hello,
>
> I am writing a package called 'DLM' containing a vignette.
> The vignette contains a chunck with the function call 'library(DLM)'.
> This worked fine with 'R CMD check DLM', but when it comes to building
> the package with 'R CMD build DLM' I get the following error message:
>
> * creating vignettes ... ERROR
>
> Error: chunk 1
> Error in library(DLM) : There is no package called 'DLM'
> Error in buildVignettes(dir = ".") : Error: chunk 1
> Error in library(DLM) : There is no package called 'DLM'
> Execution halted
>
> It looks to me as if I should have the package already installed
> before building it... I have read the article by F. Leisch on package
> vignettes in R News 3/2 and looked at the source for 'strucchange',
> but I can't figure out what I am doing wrong.
>
> Any suggestions you can provide are more than welcome!
>
> Thank you in advance,
> Giovanni
>
> > version
> _
> platform sparc-sun-solaris2.8
> arch sparc
> os solaris2.8
> system sparc, solaris2.8
> status
> major 2
> minor 0.1
> year 2004
> month 11
> day 15
> language R
>
> --
>
> __________________________________________________
> [ ]
> [ Giovanni Petris GPetris@uark.edu ]
> [ Department of Mathematical Sciences ]
> [ University of Arkansas - Fayetteville, AR 72701 ]
> [ Ph: (479) 575-6324, 575-8630 (fax) ]
> [ http://definetti.uark.edu/~gpetris/ ]
> [__________________________________________________]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
best,
-tony

"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).

A.J. Rossini
blindglobe@gmail.com

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Mar 24 00:28:50 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:55 EST