fmp_set_api_key: Set the Financial Modeling Prep API key

View source: R/fmp_set_api_key.R

fmp_set_api_keyR Documentation

Set the Financial Modeling Prep API key

Description

This function prompts the user to input their Financial Modeling Prep (FMP) API key and saves it to a .Renviron file, either in the project directory or the home directory. It also gives the user the option to add .Renviron to .gitignore for security purposes.

Usage

fmp_set_api_key()

Value

Invisibly returns TRUE after saving the key or aborting the operation. The function will read the .Renviron file after saving, allowing the environment variables to be immediately available. A restart of the R session is recommended.

Examples


fmp_set_api_key()




fmpapi documentation built on April 3, 2025, 6:14 p.m.