To build the website:
- Make sure you have the most up-to-date version of the
DESCRIPTIONfile and the.Rdfiles created from ArchR when the package is built. TheDESCRIPTIONfile should be copied into the main folder of this repository. The.Rdfiles contain the function documentation and should be copied into/man/. - In the
DESCRIPTIONfile, add the following tag "URL: https://www.ArchRProject.com" - You must have pandoc installed.
- You must have the
pkgdownR library installed. - In R, from the main repository directory (containing the index.md file), run
build_site(). This will create a lot of HTML files in the/docs/folder.
To build the book:
- Make sure the following packages are installed:
pdftools
- Clone this
ArchR_Websiterepository and navigate to the/bookdown/folder. - Delete the HTML files in the
/docs/bookdownfolder - Launch
R - Load the
renvenvironment and thebookdownpackage:library(renv) renv::restore(lockfile="/path/to/lockfile") #follow instructions to activate and load libraries library(ArchR) library(bookdown) - Run
bookdown::render_book(input = "index.Rmd", output_dir = "../docs/bookdown")from the/bookdown/directory whereindex.Rmdis located.
Once you've built the book, copy all of the HTML files and required figures etc. into the /docs/bookdown/ folder
- Because the v1.0.1 ArchR renv lockfile (as of 1/11/22) uses
xfun v0.28, I had to manually install thetinytex v0.35prior to installingbookdownusing
devtools::install_version("tinytex", version = "0.35", repos = "http://cran.us.r-project.org")
-
It seems like the building of the book struggles when packages need to be installed on the fly. This for example caused problems in the drosophila genome building section where bookdown just stalls
-
I am having trouble with conflicts between the renv packages and my locally installed packages?
-
library(parallel) causing problems in ArchR v1.0.1
-
Had to install a few packages - svglite