Skip to contents

Returns the folders in which an IMR Biotic database may have been installed, most likely first.

Usage

dbPathCandidates(folder = "IMR_biotic_BES_database")

Arguments

folder

Character string giving the name of the database folder inside the user's home directory. Defaults to "IMR_biotic_BES_database".

Value

Character vector of unique absolute paths. The folders are not created and are not guaranteed to exist.

Details

On macOS and Linux there is only one candidate, ~/IMR_biotic_BES_database. On Windows the function returns defaultDbPath first, followed by the location that raw ~ expansion produces (typically the Documents folder, which may be redirected into OneDrive). Databases compiled before BioticExplorerServer 0.8.7 may live in the latter, so both are worth checking.

Author

Mikko Vihtakari (Institute of Marine Research)

Examples

dbPathCandidates()
#> [1] "/home/runner/IMR_biotic_BES_database"