r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.37k stars 755 forks source link

Vignette can't be found #2473

Closed sebastian-gerdes closed 1 year ago

sebastian-gerdes commented 1 year ago

Dear all,

first of all: thanks for the great devtools package - it really helps a lot.

I am currently working on my first package using devtools (https://github.com/sebastian-gerdes/survqual).

Right now I am having a problem with a vignette I want to add.

When I run the folling code in a fresh R session in the package project, the vignette opens as desired:

library('devtools')
load_all()
vignette('survqual')

However, when I run the following code in a fresh R session in some other project the vignette cannot be found:

devtools::install_github('sebastian-gerdes/survqual')
library('survqual')
vignette('survqual')

I committed the current version to github, so there should be no difference between by local copy and the github version.

Does anyone have an idea why this is and knows how to fix this problem?

Thanks a lot in advance and best greetings, Sebastian

sebastian-gerdes commented 1 year ago

Dear all,

I just figured it out:

devtools::install_github("sebastian-gerdes/survqual", 
                         build_vignettes = TRUE)

Best greetings, Sebastian