Get Project drive path

Description

This function attempts to get the proper path for the Project(CIDA) drive either on Windows or Mac automatically. It returns the full CIDA drive(remote) path with the relative path (if provided) appended to the drive path.

Usage

CIDA_drive_path(file = "")

Arguments

file (optional) Path to subdirectory/file within the main project(CIDA) drive

Details

If open_project() has been called with a remote path specified the remote path will be used first.

If that is not set it will try to determine the drive path. If the expected path is not found it will try to load the project metadata path and if that fails it looks for a global default path in the user cida_defaults.dcf file.

Value

Full (absolute) file path of project(CIDA) drive plus the subdirectory/file provided.

Examples

library("CIDAtools")

# Read data from P1234PIname project
df <- read.csv(get_project_drive_path("BRANCHES/Pulmonary/P1234PIname/DataRaw/data.csv"))