Skip to content

Bishop-Laboratory/RLSuite-Paper-Miller-2022

Repository files navigation

Analysis for Miller et al. 2022

Purpose: The purpose of this repo is to enable replication of the figures and analyses from the Miller et al., 2022 manuscript. The published version of the manuscript is found ...

Quick-start

To re-create the figures from the manuscript, do the following:

  1. Clone the repo
git clone https://github.com/Bishop-Laboratory/RLSuite-Paper-Miller-2022.git
cd RLSuite-Paper-Miller-2022/
  1. System dependencies

There are some system dependencies which must be installed for compiling some packages. For Windows, this requires RTools.

To aid in the discovery of system requirements, use getsysreqs.

Install getsysreqs:

R -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")'
R -e 'remotes::install_github("mdneuzerling/getsysreqs", force=TRUE)'

Capture dependencies (replace with your OS/Version):

OS="ubuntu"
VER="20.04"
REQS=$(Rscript -e 'options(warn = -1); cat(getsysreqs::get_sysreqs("renv.lock", distribution = "'$OS'", release = "'$VER'"))' | sed s/"WARNING: ignoring environment value of R_HOME"//)

Install (Ubuntu):

sudo apt install $REQS -y
  1. Restore the renv
R -e 'if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")'
R -e 'renv::restore()'
  1. Run the script
Rscript figures.R

Troubleshooting

If any issues arise or anything is unclear, please submit an issue.

About

Code used to generate figures in the RLSuite paper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published