Skip to content
Snippets Groups Projects
Commit 6f3257e7 authored by Facundo Muñoz's avatar Facundo Muñoz :registered:
Browse files

Override check causing conflicts between dm and sf.

parent 7f49106e
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,14 @@ Package: sit
Type: Package
Title: Analyse Mark-Release-Recapture Data from Sterile Insect
Technique (SIT) Field Experiments
Version: 1.1.2.9004
Version: 1.1.2.9005
Authors@R: c(person("Françoise", "Chirara", email =
"francoise.chirara@cirad.fr", role = c("ctb"), comment = "Logo
designer"), person("Facundo", "Muñoz", email =
"facundo.munoz@cirad.fr", role = c("aut", "cre"), comment =
c("Package developer", ORCID = "0000-0002-5061-4241")),
person("Joint FAO/IAEA Centre of Nuclear Techniques in Food and Agriculture",
role = c("fnd", "cph")))
person("Joint FAO/IAEA Centre of Nuclear Techniques in Food and
Agriculture", role = c("fnd", "cph")))
Description: Import field data about the study design such as the
location and types of adult and egg traps, the release events,
the trap surveys and the egg hatches. Provide functions to
......
......@@ -197,8 +197,8 @@ sit <- function(traps, release_events, adult_surveys = NULL, egg_surveys = NULL)
ans <- dm_add_pk(ans, trap_types, "id", check = TRUE)
## Specify foreign keys and check correspondence
ans <- dm_add_fk(ans, egg_surveys, "trap_id", traps, check = TRUE)
ans <- dm_add_fk(ans, adult_surveys, "trap_id", traps, check = TRUE)
ans <- dm_add_fk(ans, egg_surveys, "trap_id", traps, check = FALSE)
ans <- dm_add_fk(ans, adult_surveys, "trap_id", traps, check = FALSE)
ans <- dm_add_fk(
ans,
adult_surveys,
......@@ -208,7 +208,7 @@ sit <- function(traps, release_events, adult_surveys = NULL, egg_surveys = NULL)
## populations, which are not present in table release_events.
check = FALSE
)
ans <- dm_add_fk(ans, release_events, "site_id", release_sites, check = TRUE)
ans <- dm_add_fk(ans, release_events, "site_id", release_sites, check = FALSE)
## Avoid checking for consistency. Problematic since traps is `sf`
## https://github.com/cynkra/dm/issues/705
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment