- Install LaTeX and the extensions required to run Rd2pdf
Code Block |
---|
...
|
...
# Linux
sudo apt-get install texlive-latex-base
sudo apt-get install texinfo
sudo apt-get install texlive-fonts-extra
Creating client-side DataSHIELD package manuals
- On the client: Run R to check where datashield is installed on your machine using
.libPaths()
in R.
...
# Example paths in R client-side in Linux
> .libPaths()
[1] "/home/rw13742/R/x86_64-pc-linux-gnu-library/3.1"
[2] "/usr/local/lib/R/site-library"
[3] "/usr/lib/R/site-library"
[4] "/usr/lib/R/library"
- Navigate to the appropriate folder Datashield R library is held and run Rd2pdf to create pdf manual of each package
...
# Linux
cd /home/rw13742/R/x86_64-pc-linux-gnu-library/3.1
R CMD Rd2pdf PACKAGENAME
Creating DataSHIELD server-side package manuals
- Server-side all datashield packages sit in
...
/var/lib/rserver/R/i686-pc-linux-gnu-library/3.1
- Navigate to the appropriate folder Datashield R library is held and run Rd2pdf to create pdf manual of each package
...
# Linux
cd /home/rw13742/R/x86_64-pc-linux-gnu-library/3.1
R CMD Rd2pdf PACKAGENAME
...
devtools::build_manual() |
can now be used to generate PDF version of the R manual pages.