[R-pkg-devel] Issue with including vignettes without building package
alexandre.courtiol at gmail.com
Thu Apr 20 22:37:04 CEST 2017
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 browseURL(paste0(find.package("XXX"), "/doc/")).
It opens the folder with all the vignette, but it is not as nice as opening
the index in the web browser.
Doing a browseURL on the index.html works but then the links do not... so
that does not help.
On 20 April 2017 at 22:30, Alexandre Courtiol <alexandre.courtiol at gmail.com>
> 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 <sven.templer at gmail.com> wrote:
>> Hi Alex,
>> what if you run
>> devtools::install_github(build_vignettes = TRUE)
>> on your students computer?
>> See ?devtools::install
>> > On 20. Apr 2017, at 15:09, Alexandre Courtiol <
>> alexandre.courtiol at gmail.com> wrote:
>> > Dear all,
>> > I am using a package for teaching:
>> > my slides are html vignettes, and it is convenient for students to
>> > which packages they must install, provide code and datasets.
>> > As I am often editing the package live during the course, it would be
>> > if I could just push to github and that the student would just have to
>> > a devtools::install_github() to get my updated vignettes. I would rather
>> > not to have to build the package before pushing to save time.
>> > The issues is that I do not want to build the vignettes on install as
>> > are very slow to build. On my computer however it is quick because I
>> > cached the knitr chunks output. So I was hoping to just have to run
>> > devtools::build_vignettes() on my machine before pushing the files
>> > created (./inst/doc) and that the student could just
>> > devtools::install_github().
>> > I cannot make this work: no vignettes are found after install. When I do
>> > check the repository beeing installed on their computers, the html, Rmd
>> > R files corresponding to the vignettes are present in ./doc, so it is
>> > an issue of having the wrong .gitgnore configuration.
>> > I have read about many vignettes related issues on the net, but I did
>> > find something dealing with this precise issue.
>> > PS: I know about the R.rsp hack, but I would prefer to find a solution
>> > direct.
>> > Best,
>> > Alex
>> > --
>> > Alexandre Courtiol
>> > http://sites.google.com/site/alexandrecourtiol/home
>> > *"Science is the belief in the ignorance of experts"*, R. Feynman
>> > [[alternative HTML version deleted]]
>> > ______________________________________________
>> > R-package-devel at r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
> Alexandre Courtiol
> *"Science is the belief in the ignorance of experts"*, R. Feynman
*"Science is the belief in the ignorance of experts"*, R. Feynman
[[alternative HTML version deleted]]
More information about the R-package-devel