Returns the path to the atlas folder of your chosen Overleaf project. On first use (or if no project has been set), you'll be prompted to select from available Overleaf projects in your Dropbox. Your choice is stored as an environment variable for the current R session only.

get_overleaf_project()

Value

Character string containing the full path to the atlas folder of the selected Overleaf project.

Details

This function is called internally by grattan_save_overleaf(), but can also be used directly if you need the Overleaf atlas path for other purposes.

If the session persists longer than 24 hours, a reminder message will display which project folder is being used. To change projects or set a custom path, use set_overleaf_project().

The function creates the atlas subfolder if it doesn't already exist.

Since the setting only persists for the current R session, we recommend calling set_overleaf_project() at the beginning of your script for clarity and reproducibility.

See also

set_overleaf_project to change which project is used, grattan_save_overleaf to save charts directly to Overleaf

Examples

if (FALSE) { # \dontrun{
# Get the current Overleaf project path
atlas_path <- get_overleaf_project()

# Use it to save files manually
write.csv(my_data, file.path(atlas_path, "my_data.csv"))
} # }