
Get ready - step 1: Installation and system requirements
Serena Defina
2026-01-08
Source:vignettes/articles/00-installation-sys-requirements.Rmd
00-installation-sys-requirements.RmdInstallation
We are planning to submit verywise to CRAN soon.
In the meantime, you can install the development version of
verywise from GitHub
using either pak or devtools (provided
these packages are already installed on your system).
# Install pak (if not there yet)
if (!requireNamespace("pak"))
install.packages('pak')
# Install verywise
pak::pak("SereDef/verywise")
# Install devtools (if not there yet)
if (!requireNamespace("devtools"))
install.packages('devtools')
# Install verywise
devtools::install_github("SereDef/verywise")This will also download a few other R packages that are needed, so give it a teensy-weensy little minute to do its thing.
Finally, you can attach the package in your session, to make it easier to use:
System and software requirements
In order for verywise to run smoothly, you will
need:
-
R(version >= 4.0) installed. - FreeSurfer installed.
- A Unix system: currently,
verywiseworks on macOS and on most Linux distributions, but not on Windows. This is because we rely on functions from the FreeSurfer suite which require Unix.
We also highly recommend to:
- Set
FREESURFER_HOMEandSUBJECTS_DIRenvironment variables. This is typically done when you configure Freesurfer, as described extensively here, and briefly in the FreeSurfer installation instructions below. - Make sure a symbolic link to the target template (usually,
fsaverage) is in yourSUBJECTS_DIR. This is typically done automatically byrecon-all, as briefly described in the next article. - Run your analysis using a multi-core machine, as
verywiseis especially designed to take advantage of parallel processing to speed up computations.
Installing and setting up FreeSurfer
You can find extensive instructions on how to install and use FreeSurfer on their wiki.
Here is a quick summary of what needs to happen:
- Download and install FreeSurfer (instructions).
- Request a FreeSurfer license here.
- (Optionally) set up the FreeSurfer environment variables
(
FREESURFER_HOMEandSUBJECTS_DIR) by adding the following lines to your shell configuration file (e.g.,~/.bashrcor~/.zshrc):
Next article: Preparing your data for
verywise