Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README: vignette missing #57

Closed
wants to merge 2 commits into from

Conversation

rkuttnerFHCR
Copy link

Instructions for including vignette are not correct.

devtools::install_github("FredHutch/VISCtemplates", build_vignettes = TRUE)
vignette("using_pdf_and_word_template")
#> Warning message:
#> vignette ‘using_pdf_and_word_template’ not found 
browseVignettes("VISCtemplates")
#> No vignettes found by browseVignettes("VISCtemplates")

To include the vignettes:

devtools::install_github("FredHutch/VISCtemplates", 
                                      build_opts = c("--no-resave-data", "--no-manual"))
vignette("using_pdf_and_word_template")

Instructions for including vignette are not correct.
``` r
devtools::install_github("FredHutch/VISCtemplates", build_vignettes = TRUE)
vignette("using_pdf_and_word_template")
#> Warning message:
#> vignette ‘using_pdf_and_word_template’ not found 
browseVignettes("VISCtemplates")
#> No vignettes found by browseVignettes("VISCtemplates")
```

To include the vignettes:
``` r
devtools::install_github("FredHutch/VISCtemplates", 
                                      build_opts = c("--no-resave-data", "--no-manual"))
vignette("using_pdf_and_word_template")
```
@wfulp
Copy link

wfulp commented Aug 20, 2020

The build_vignettes works for me 🤷. I'm not sure what the difference is.

image

@rkuttnerFHCR
Copy link
Author

It may have to do with which version of the devtools package you are using. I found this issue with the following quote from member of the R infrastructure team Jim Hester,

post by @jimhester in r-lib/devtools#1896 (comment)

Yes, remove --no-build-vignettes from the build_opts to build the vignettes. e.g.

devtools::install_github("foo/bar", build_opts = c("--no-resave-data", "--no-manual"))

@wfulp
Copy link

wfulp commented Aug 20, 2020

It may have to do with which version of the devtools package you are using. I found this issue with the following quote from member of the R infrastructure team Jim Hester,

post by @jimhester in r-lib/devtools#1896 (comment)

Yes, remove --no-build-vignettes from the build_opts to build the vignettes. e.g.

devtools::install_github("foo/bar", build_opts = c("--no-resave-data", "--no-manual"))

It looks to be fixed in the remotes package:

  if (!isTRUE(build_vignettes)) {
    build_opts <- union(build_opts, "--no-build-vignettes")
  } else {
    build_opts <- setdiff(build_opts, "--no-build-vignettes")
  }

https://github.com/r-lib/remotes/blob/master/R/install.R (line 87)

@wfulp
Copy link

wfulp commented Aug 20, 2020

Found the issue (r-lib/remotes#353)

@rkuttnerFHCR
Copy link
Author

Nice!
Looks like the problem was fixed in version 2.1.0 in the remotes package.

Copy link

@wfulp wfulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should change it to remotes though

README.Rmd Outdated Show resolved Hide resolved
README.Rmd Outdated Show resolved Hide resolved
@rkuttnerFHCR
Copy link
Author

devtools::install_github() is a wrapper around remotes.

They differ only that the ones in devtools use the ellipsis package to ensure all dotted arguments are used.

So it's fine to leave the README as is.

@rkuttnerFHCR
Copy link
Author

On the other hand, it is more consistent to use remotes for both instructions and requires less of the user.

@rkuttnerFHCR rkuttnerFHCR reopened this Aug 20, 2020
Co-authored-by: Jimmy Fulp <WilliamJFulp@gmail.com>
@wfulp
Copy link

wfulp commented Aug 20, 2020

Thanks @rkuttnerFHCR for catching this. I fixed it in #58

@wfulp wfulp closed this Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants