To build the website:
- Make sure you have the most up-to-date version of the
DESCRIPTION
file and the.Rd
files created from ArchR when the package is built. TheDESCRIPTION
file should be copied into the main folder of this repository. The.Rd
files contain the function documentation and should be copied into/man/
. - In the
DESCRIPTION
file, add the following tag "URL: https://www.ArchRProject.com" - You must have pandoc installed.
- You must have the
pkgdown
R 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_Website
repository and navigate to the/bookdown/
folder. - Delete the HTML files in the
/docs/bookdown
folder - Launch
R
- Load the
renv
environment and thebookdown
package: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.Rmd
is 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.35
prior to installingbookdown
using
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