alternative_installation.md

Full RAVE installation guide

For best performance, we recommend a 4-core CPU (e.g. Intel i5 or better) with at least 64GB RAM (at least 8 GB per core). RAVE displays results on a web browser, and is deceloped with Google Chrome. Apple and Microsoft browsers will run with reduced functionality (e.g. shaders will not render brain slices). Mac and UNIX offers better multicore tools than Windows, so multithreaded operation will be better on these platforms.

First, install all required prerequisites. RAVE requires the latest versions of R (>= 3.6.0) and RStudio. Trying to install RAVE on older versions of R and RStudio will lead to unpredictable error messages. For cloud-based RAVE or other use cases where multiple users will run RAVE on a single server, consider RStudio Server instead of RStudio.

Next, open the RStudio application using the desktop shortcut; in Mac OSX, RStudio can be found in the Applications folder. Copy and paste the following commands (one at a time) into the RStudio console to install the current version of RAVE. Answer "Yes" to any questions that appear. In the case of errors, relaunch RStudio and repeat the commands.

# this step requires XCode on mac or RTools on Windows
install.packages('devtools')
devtools::install_github('beauchamplab/rave')

# this step will install other packages needed by RAVE. If asked to compile packages from source, 
# you can say safely say no. 
rave::check_dependencies()
# this step may fail on Windows. If so, run 
remotes::install_github("dipterix/dipsaus", upgrade = FALSE, force = FALSE, quiet = FALSE)

# this step ensures all available RAVE modules are accessible
rave::arrange_modules(TRUE, TRUE)

# This step ensures you have a template brain already installed.
threeBrain::download_N27(make_default = TRUE)

To update existing installations of RAVE, run the following commands after making sure to update R and RStudio. Start RAVE and verify that the newer version loads. RStudio is unable to update packages that are in use, so it may be necessary to restart RStudio and retry the update. As an additional step, use the RStudio package manager to delete all RAVE packages and reinstall.

devtools::install_github('beauchamplab/rave')
rave::check_dependencies()

Download Demo data

# 500MB ~ 1.5 GB per subject
rave::download_sample_data('KC')
rave::download_sample_data('YAB')
rave::download_sample_data('YAD')
rave::download_sample_data('YAF')
rave::download_sample_data('YAH')
rave::download_sample_data('YAI')
rave::download_sample_data('YAJ')
rave::download_sample_data('YAK')

# download group analysis sample - 72 MB. Please download at least 1 subject above.
rave::download_sample_data('_group_data')

Once you see the following message, the subject is downloaded. The directory (XXX) will vary depending on the machine. If a subject previously exists, RAVE will ask you to choose from replacing, creating new or abandon the downloaded subject.

[ INFO ]: Expanding zip file
[ INFO ]: Copy from tempdir to data repository
[ INFO ]: Clean up
[ INFO ]: Done. Subject [sub1] is now at 
[Raw Data]: /XXX/rave_data/raw_dir/KC
[RAVE Data]: /XXX/rave_data/data_dir/demo/KC


beauchamplab/rave documentation built on Feb. 23, 2024, 7:20 a.m.