[Rd] instantiating a reference class with an initialize() method from .onLoad fails

2014-02-20 Thread Martin Morgan
PkgA has a single R/binding.R file containing .A <- setRefClass("A", methods=list(initialize=function(...) {})) .onLoad <- function(...) .A() A NAMESPACE with import(methods) exportClasses("A") and DESCRIPTION Package: PkgA Type: Package Title: Documenting reference

Re: [Rd] Where to put package vignettes

2014-02-20 Thread Yihui Xie
It is not guaranteed that knitr vignettes will work for R < 3.0.x (even with the Makefile approach, which was really a hack). Unless you must stay with R 2.15.x, you are strongly recommended to upgrade to R 3.0.x and forget about the Makefile approach. Then follow the three steps mentioned in http:

Re: [Rd] Where to put package vignettes

2014-02-20 Thread Hadley Wickham
You also need to make sure that your knitr vignettes include %\VignetteEngine{knitr::knitr} See http://yihui.name/knitr/demo/vignette/ for full details. Hadley On Thu, Feb 20, 2014 at 8:56 AM, baptiste auguie wrote: > Hi, > > You should take the following steps: 1) upgrade R, 2) specify > Vig

Re: [Rd] Where to put package vignettes

2014-02-20 Thread baptiste auguie
Hi, You should take the following steps: 1) upgrade R, 2) specify VignetteBuilder: knitr in your DESCRIPTION file, 3) check how other CRAN packages using knitr do it (e.g. knitr itself). No makefile is needed, that was a temporary workaround, now irrelevant. HTH, baptiste On 20 February 2014

Re: [Rd] Where to put package vignettes

2014-02-20 Thread Guillermo.Vinue
Dear Søren, Thank you very much for your answer, it solved my problem and now my package can be installed both on Linux and Windows and the vignette is available in both systems. I put the vignette in /vignettes. However, unfortunately my problems have not ended here. As mentioned, my vignette is

Re: [Rd] Where to put package vignettes

2014-02-20 Thread Søren Højsgaard
Guillermino, Sorry but I've never made it beyond Sweave in connection with R packages; we will have to wait for more insight from others. Søren -Original Message- From: guillermo.vi...@uv.es [mailto:guillermo.vi...@uv.es] Sent: 20. februar 2014 15:43 To: Søren Højsgaard Cc: r-devel@r-p

Re: [Rd] Where to put package vignettes

2014-02-20 Thread Søren Højsgaard
My understanding is this: 1) Put vignettes files (.Rnw files) in the /vignettes subdirectory. 2) Build the package foo with R CMD build foo. 3) Install the package with R CMD INSTALL foo_xxx.tar.gz Then the vignettes will be available. However you can also install the package with R CMD INSTAL

[Rd] Where to put package vignettes

2014-02-20 Thread Guillermo.Vinue
Dear R-devel list, My name is Guillermo Vinué. I have created an R package that includes a vignette. Earlier on, to test my package, I tried to install it both in Linux and Windows and it worked. My vignette was in /inst/doc. Now, I have finished for good and before submitting my package to CRAN

[Rd] "Spinning ball" in Rgui in Windows but not in OS X

2014-02-20 Thread Fisher Dennis
R 3.0.2 OS X, Windows 7 Colleagues This is my first submission to this bulletin board so forgive me if I miss some etiquette issue. I am running some C code in Rgui in both OS X and Windows. It takes ~ 10 seconds for the code to execute. In OS X, the GUI is silent during this period. In Win