powered by
Helper function to set credentials in .Renviron file for persistent storage. This is more secure than storing in scripts.
copernicus_set_env_credentials(username, password, overwrite = FALSE)
Invisible TRUE if successful.
Character. Copernicus Marine username.
Character. Copernicus Marine password.
Logical. Overwrite existing credentials in .Renviron? Default: FALSE.
if (FALSE) { # Set credentials in .Renviron (will persist across R sessions) copernicus_set_env_credentials("your_username", "your_password") }
Run the code above in your browser using DataLab