Rmarkdown script and updated CHOIRBM R package for Body Macroregion Plotting
-
Navigate to the CHOIRBM directory in R terminal. To do this, once you have opened body_macroregion_plotting.rmd, you can use:
setwd('CHOIRBM')
-
Install CHOIRBM using the
devtools
package. If you haven't installeddevtools
yet, you can do so by runninginstall.packages("devtools")
. Then, run the following command to install CHOIRBM:devtools::install()
-
In the body_macroregion_plotting.rmd file, the updated CHOIRBM packaged that will be loaded via:
library(CHOIRBM)
-
To verify that you have successfully installed and loaded the updated version of CHOIRBM, you can check the package version. The following command should print โ0.0.2.9001โ:
packageVersion("CHOIRBM")
Note: you should restart R each time before installing the new CHOIRBM package to prevent any caching issues stopping the updated version from loading
Other necessary packages to run the body_macroregion_plotting.rmd file include those found in these libraries:
```r
library(readxl)
library(dplyr)
library(tidyr)
library(stringr)
library(gt)
library(ggplot2)
```
```r
install.packages(c("readxl", "dplyr", "tidyr", "stringr", "gt", "webshot2"))
```