Skip to content

Allow data frame to be passed to add_resource() #121

@peterdesmet

Description

@peterdesmet

movepub::add_resource() currently only supports files to be added. That is a bit annoying for tests, for example here where we have to revert to using frictionless:

# Create package, use frictionless::add_resource() to add df rather than csv
x_missing_ref_cols <-
create_package() |>
frictionless::add_resource("reference-data", iris) |>
frictionless::add_resource("gps", gps)

Maybe we should allow data frames as well (cf. frictionless::add_resource()).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions