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", root = "Fiskwise_data")

Arguments

folder

Character string giving the name of the database folder. Defaults to "IMR_biotic_BES_database".

root

Character string giving the shared data folder inside the user's home directory that holds folder. Defaults to "Fiskwise_data", the folder in which Fiskwise keeps all its local databases. Use NULL or "" to place folder directly in the home directory (the layout used before BioticExplorerServer 0.8.14).

Value

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

Details

The current default (defaultDbPath, inside root) comes first, followed by the legacy location directly in the home directory, which databases compiled before BioticExplorerServer 0.8.14 use. On Windows each of these is listed twice: under %USERPROFILE% and under the location that raw ~ expansion produces (typically the Documents folder, which may be redirected into OneDrive and was used before version 0.8.7).

AI assistance

Written with Claude Opus 5.5 (Anthropic); reviewed in full by Claude Opus 5.5 (Anthropic), 2026-11-20.

Author

Mikko Vihtakari (Institute of Marine Research)

Examples

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