1

I am trying to create a PDF manual for a number of installed and loaded non-CRAN packages, from within RStudio.

library(devtools)
devtools::build_manual(fable, path = "./")

I have tried many variations on this. The most common error I get is

Error: path must be a string.

The first argument must be a path or a "package object". I can not find any definition of a package object. I have found no instance of a string or expression that does not yield some sort of error in

as.package(expr)
hplieninger
  • 3,214
  • 27
  • 32
andrewH
  • 2,281
  • 2
  • 22
  • 32
  • You can try using [R CMD](https://stackoverflow.com/questions/16986422/r-create-reference-manual-with-r-cmd-check). – patL Aug 02 '19 at 07:05

1 Answers1

1

Using the path to the package as the first argument in build_manual() works for me:

sessioninfo::package_info("rlang")
#>  package * version    date       lib source                      
#>  rlang     0.4.0.9000 2019-07-10 [1] Github (r-lib/rlang@a3d7e47)
#> 
devtools::build_manual("~/R/win-library/3.6/rlang", path = ".")
#> Hmm ... looks like a package
#> Creating pdf output from LaTeX ...
#> Saving output to './rlang_0.4.0.9000.pdf' ...
#> Done
hplieninger
  • 3,214
  • 27
  • 32
  • 1
    Thanks! And an extra thanks for sessioninfo::package_info, a very handy function that I have never used before. – andrewH Aug 02 '19 at 23:29