Loads a user-specific file (e.g., account tree, lock file) from the localfilesystem.The file format is determined automatically based on its extension.
Value
The loaded object, parsed according to the file extension:
`.Rds` files are loaded with
readRDS()
`.json` files are loaded with
jsonlite::fromJSON()
`.csv` files are loaded with
read.csv()
some depedencies:
Details
This function is intended to be called indirectly through a generic loader
such as load_user_file
, which determines the appropriate
backend to use. The file extension determines the parser, and unsupported
file types will raise an error.