View source: R/fct_read_project.R
read_project | R Documentation |
Read a project from disk.
read_project(
path,
spatial_path = NULL,
attribute_path = NULL,
boundary_path = NULL,
mode = "project"
)
path |
|
spatial_path |
|
attribute_path |
|
boundary_path |
|
mode |
|
Note that the status field for themes and weights will automatically
be set to FALSE
if the goal/weight values are zero.
This is to ensure that the application starts with a sensible
combination of settings.
A list
containing the following elements:
A character
value indicating the name.
A Dataset object.
A list
of Theme objects.
A list
of Weight objects.
A list
of Include objects.
A list
of Exclude objects.
A character
value indicating the mode.
# find data file paths
f1 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_data.yaml",
package = "wheretowork"
)
f2 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_spatial.tif",
package = "wheretowork"
)
f3 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_attribute.csv.gz",
package = "wheretowork"
)
f4 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_boundary.csv.gz",
package = "wheretowork"
)
# read project
x <- read_project(f1, f2, f3, f4)
# print project
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.