copernicus_set_env_credentials: Set Copernicus Marine credentials in environment file

View source: R/setup_copernicus.R

copernicus_set_env_credentialsR Documentation

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)

Arguments

username

Character. Copernicus Marine username.

password

Character. Copernicus Marine password.

overwrite

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

Value

Invisible TRUE if successful.

Examples

## Not run: 
# Set credentials in .Renviron (will persist across R sessions)
copernicus_set_env_credentials("your_username", "your_password")

## End(Not run)

copernicusR documentation built on Aug. 8, 2025, 7:06 p.m.