Learn R Programming

copernicusR (version 0.1.0)

copernicus_set_env_credentials: Set Copernicus Marine credentials in environment file

Description

Helper function to set credentials in .Renviron file for persistent storage. This is more secure than storing in scripts.

Usage

copernicus_set_env_credentials(username, password, overwrite = FALSE)

Value

Invisible TRUE if successful.

Arguments

username

Character. Copernicus Marine username.

password

Character. Copernicus Marine password.

overwrite

Logical. Overwrite existing credentials in .Renviron? Default: FALSE.

Examples

Run this code
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