I managed to create a package using RStudio and roxygen2. The whole package-creating process worked without any errors and warnings. Anyway, my question is how do I create a PDF documentation of my package and its functions? Thanks in advance.
Once installed, you can get a list of all the functions in the package. If the package is on CRAN, you will find documentation in PDF format of all functions inside a page like https://cran.r-project.org/web/packages/package_name . Recall you can access this documentation in HTML format with the help function.
help operator in R provide access to the documentation pages for R functions, data sets, and other objects, both for packages in the standard R distribution and for contributed packages. To access documentation for the standard lm (linear model) function, for example, enter the command help(lm) or help("lm") , or ?
The official R software environment is an open-source free software environment within the GNU package, available under the GNU General Public License. It is written primarily in C, Fortran, and R itself (partially self-hosting). Precompiled executables are provided for various operating systems.
You mean the pdf manual? I don't think there's a handy devtools
function for that (but I could be wrong). Try running system('R CMD Rd2pdf /path/to/mypackage')
.
You'll need a working LaTeX distribution to make pdfs. See also this discussion on stackoverflow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With