Skip to content

Fetching baro assumes date or text #57

Description

@jonbry

The vast majority of our data is date time, but the marsFetchBaroData function only accepts dates. Passing a datetime value causes an NA:

start_date <- lubridate::ymd(start_date, tz = "America/New_York")
end_date <- lubridate::ymd(end_date, tz = "America/New_York")

We can first check if they are date or datetime using lubridate::is.timepoint, then choosing ymd or as_date

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions