Get, set, or erase a preference for the currently authenticated user (i.e. you) in a project.

api_get_user_preference(project_id, key)

api_set_user_preference(project_id, key, value)

api_del_user_preference(project_id, key)

Arguments

project_id

internal, numeric id of the project.

key

string, the name (key) of the preference. Possible preferences are:

  • cwd: the "current working directory", i.e. last directory on the server from which you imported data in the target project.

  • mru: the list of taxonomic categories "most recently used" in this project. This list is used in the autocompletion of categories in the classification page.

value

the value of the preference, when setting it.

Details

Note that currently setting or deleting preferences does not work

See also

Examples

# get preference api_get_user_preference(185, "cwd")
#> [1] ""
if (FALSE) { # set preference and verify it api_get_user_preference(185, key="foo") api_set_user_preference(185, key="foo", value="test") api_get_user_preference(185, key="foo") # delete preference api_del_user_preference(185, key="foo") api_get_user_preference(185, key="foo") }