Hi,
Is this desired? I would expect that replace=TRUE should not prevent the addition of a new (non-yet-exisiting) resource.
library(frictionless)
package <- example_package()
# Create a data frame
df <- data.frame(
multimedia_id = c(
"aed5fa71-3ed4-4284-a6ba-3550d1a4de8d",
"da81a501-8236-4cbd-aa95-4bc4b10a05df"
),
x = c(718, 748),
y = c(860, 900)
)
# Add the resource "positions" from the data frame
add_resource(package, "positions", data = df)
#> A Data Package with 4 resources:
#> • deployments
#> • observations
#> • media
#> • positions
#> Use `unclass()` to print the Data Package as a list.
add_resource(package, "positions", data = df, replace = TRUE)
#> A Data Package with 3 resources:
#> • deployments
#> • observations
#> • media
#> Use `unclass()` to print the Data Package as a list.
I didn't look at the function, so not sure why this is happening.
Hi,
Is this desired? I would expect that
replace=TRUEshould not prevent the addition of a new (non-yet-exisiting) resource.I didn't look at the function, so not sure why this is happening.