[R] Package vignette and build

A.J. Rossini blindglobe at gmail.com
Wed Mar 23 14:22:43 CET 2005


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 at 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 at 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 at 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 at gmail.com




More information about the R-help mailing list