DONKI_Notifications: DONKI_Notifications: Space Weather Database Of Notifications,...

Description Usage Arguments Value Examples

View source: R/DONKI_Notifications.R

Description

Get access to the data of Notifications.

Usage

1
2
3
DONKI_Notifications(key = Sys.getenv("NASA_TOKEN"),
  start_date = end_date - 7, end_date = lubridate::today(tzone =
  "UTC"), type = "all")

Arguments

key

String. Your NASA API key, you can enter your key in the function parameter, but it's not recommended. Instead, you'd better save your key in R environment and call it "NASA_TOKEN". Then the function would automatically acquire your key info.

start_date

Date. Starting UTC date for Notifications search. 7 days prior to current UTC date as default. The request date range is limit to 30 days. If the request range is greater than 30 days, it would limit your request range to (end_date-30) to end_date.

end_date

Date. Ending UTC date for Notifications search. Current UTC date as default.

type

String. "all" as default (choices: "all", "FLR", "SEP", "CME", "IPS", "MPC", "GST", "RBE", "report")

Value

Data of Notifications.

Examples

1
DONKI_Notifications(start_date = as.Date("2019-01-01"), end_date = as.Date("2019-03-01"))

Liu-Zhichao/nasaR documentation built on Dec. 16, 2019, 10:48 p.m.