cacheManager: Manage the cache

View source: R/cacheManager.R

cacheManagerR Documentation

Manage the cache

Description

The function creates a folder (only once) and then controls files that need to be downloaded and placed in this folder.

Usage

cacheManager(nameFile)

Arguments

nameFile

the name of the file or folder

Value

the path to the file we need

Localisation

The localisation of the folder is defined in the '.Renviron' file, by setting the 'OSMOSE_DIR' environment variable: - On Linux/Mac Os X : 'OSMOSE_DIR=/Users/Nicolas/Desktop/OSMOSE_TEST/R' - On Windows: 'OSMOSE_DIR=C:\Users\Nicolas\Desktop\OSMOSE_TEST\R'

If this variable is not set, the files will be downloaded into a temporary directory.

Author(s)

Arthur PERE

Nicolas BARRIER


roliveros-ramos/osmose documentation built on Feb. 19, 2023, 8:19 a.m.