VWRfirstrun {VertexWiseR} | R Documentation |
VertexWiseR system requirements installation
Description
Helps the user verify if VertexWisrR's system requirements are present and install them ('Miniconda', 'BrainStat' toolbox and libraries). If they are installed already, nothing will be overwritten.
Usage
VWRfirstrun(requirement = "any", n_vert = 0, promptless = FALSE)
Arguments
requirement |
String that specifies a requirement to enquire about:
|
n_vert |
Numeric vector indicating the number of vertices of a given surface data so that only the required templates are asked for |
promptless |
A boolean object specifying whether to prompt the user for action when system requirements are missing. If TRUE, VWRfirstrun() will simply inform of what is missing and will not prompt for action. Default is FALSE. |
Details
VertexWiseR imports and makes use of the R package 'reticulate.' 'reticulate' is a package that allows R to borrow or translate Python functions into R. Using 'reticulate', the package calls functions from the 'BrainStat' Python module. For 'reticulate' to work properly with VertexWiseR, 'Miniconda' needs to be installed with it — 'Miniconda' is a lightweight version of Python, specifically for use within 'RStudio'. If for a reason Miniconda cannot be installed, the function gives the choice to install a reticulate-suitable Python environment. Vertex-wise statistical analyses of cortical surface require fsaverage and parcellation templates as imported by default in 'BrainStat'. The decode_surf_data() function also requires the 'Neurosynth' database to be downloaded.
Value
No returned value in interactive session. In non-interactive sessions, a string object informing that system requirements are missing.
Examples
VWRfirstrun()