Returns the directory where download_fao_data() and download_fishbase_data() save data
and where all functions look for it: the folder set with fao_settings(data_dir = ...), else
the environment variable FAOFISHINGREPORT_DATA_DIR, else the user data folder of R
(tools::R_user_dir("faofishingreport", "data")).
Details
To use the same folder in every R session, e.g. a cloud folder shared by several computers or
a team, add a line FAOFISHINGREPORT_DATA_DIR=<folder> to the .Renviron file in your home
folder (file.path(Sys.getenv("HOME"), ".Renviron")) and restart R.
See also
Other FAO data:
check_fao_update(),
download_fao_data(),
fao_data_info(),
load_fao_data()
Examples
if (FALSE) { # \dontrun{
fao_data_dir()
fao_settings(data_dir = "D:/shared/fao_data") # e.g. a folder shared by a team
} # }
