Re: [R-pkg-devel] Issue with including vignettes without building package

2017-04-20 Thread Alexandre Courtiol
Thanks but I don't think so, that would imply them to rebuild the vignettes, which is exactly what I want to avoid. Without knitr cached chunk it would take forever on their laptops and they would also need to install tons of packages... ++ On 20 April 2017 at 21:01, Sven E Templer

Re: [R-pkg-devel] Issue with including vignettes without building package

2017-04-20 Thread Sven E Templer
Hi Alex, what if you run devtools::install_github(build_vignettes = TRUE) on your students computer? See ?devtools::install Best, Sven > On 20. Apr 2017, at 15:09, Alexandre Courtiol > wrote: > > Dear all, > > I am using a package for teaching: > my

Re: [R-pkg-devel] Issue with including vignettes without building package

2017-04-20 Thread Alexandre Courtiol
To rephrase my needs, I need to find a way to create the file /Meta/vignette.rds at install, not build, as all other files for the vignettes to run are being installed properly. Has anyone managed to do that? For now my horrible hack is to have a function calling the vignette through a call to

Re: [R-pkg-devel] Issue with including vignettes without building package

2017-04-20 Thread Zhian Kamvar
Perhaps you could add a Makefile with a rule that compiles the vignettes into the inst/doc directory? This might avoid the build process. - Zhian N. Kamvar, Ph. D. Postdoctoral Researcher (Everhart Lab) Department of Plant Pathology University of Nebraska-Lincoln > On Apr 20, 2017, at

Re: [R-pkg-devel] How to fix errors in R headers when uploading my package to win-builer

2017-04-20 Thread GSC
I figured it out as header clash. Putting #include R headers after Windows headers works for me. GSC 于2017年4月18日周二 上午9:54写道: > That link is deprecated, new link to log: > https://win-builder.r-project.org/I3u4Z9BbLHsC/ . > > GSC 于2017年4月17日周一 下午10:47写道: > >> I

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread David Hugh-Jones
Hi Duncan, Thank you very much for taking the time to look at this. I tried rebuilding the tar file so as to include only the .Rmd files, not the HTML files, in 'vignettes': drwxr-xr-x 0 david staff 0 20 Apr 09:21 huxtable/vignettes/ -rw-r--r-- 0 david staff1633 6 Apr 16:26

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread David Hugh-Jones
Hi guys, Thanks very much for all of your comments. I now have a good sense of what the possibilities are, and I will think about what works best for my package. Cheers, David On 20 April 2017 at 14:42, Duncan Murdoch wrote: > On 20/04/2017 4:57 AM, Brian G.

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread Brian G. Peterson
David, I'd suggest creating a vignette for each of HTML and PDF, and including a source file that contains the common code. e.g. have a pdf header and an html header file, and then include the 'main' Rmd as a child doc from each header Rmd. This way R CMD build could build both pdf and html

Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-20 Thread Thierry Onkelinx
Dear Roy, In case you create a HTML vignette you can use datatable() from the DT package. That creates a dynamic table in the output. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team