Read a project from disk.
read_builtin_project(path, parameters)
path |
|
---|---|
parameters |
|
A list
containing the following elements:
A character
value indicating the name.
A character
indicating the author name for the data.
A character
indicating the contact email for the data.
A Project object.
# specify file path
f1 <- system.file(
"extdata", "projects", "simulated-data", "simulated-data.yaml",
package = "whattodo"
)
# read project
x <- read_builtin_project(f1, whatdataio::read_data_configuration())
# print project
print(x)
#> $name
#> [1] "Simulated dataset"
#>
#> $author_name
#> [1] "Richard Schuster"
#>
#> $author_email
#> [1] "richard.schuster@natureconservancy.ca"
#>
#> $project
#> Project
#> id: f534be3d-bbb0-4fc2-b67b-64ca7ca39271
#> sites: "Johnston's Pond", "Lobster Bay", "Port Joli", "Round Bay"
#> features: "Salt Marsh", "ACPF", "Freshwater Wetland"
#> actions: "Maintain", "Signage", "Restore"
#> geometry: TRUE
#>