1

Im trying to create a vignette using the following command from Hadley Wickham's R-package book:

devtools::use_vignette("my_package")

But get the following error:

Error: 'my_package' is not an exported object from 'namespace:devtools'

duckmayr
  • 16,303
  • 3
  • 35
  • 53
Oscar Kjell
  • 1,599
  • 10
  • 32

1 Answers1

6

You are looking at the old version of the book at http://r-pkgs.had.co.nz/vignettes.html.

Check out the newer version at https://r-pkgs.org/vignettes.html:

To create your first vignette, run:

usethis::use_vignette("my-vignette")

In newer versions of devtools, it relies on usethis for functions like use_vignette().

Community
  • 1
  • 1
duckmayr
  • 16,303
  • 3
  • 35
  • 53