Skip to content

target module_aglu_LB141.ag_Fert_IFA_ctry_crop failed #1258

Open
@Caiqn23

Description

@Caiqn23

when I'm run "dirver_drake()", it remind me that:

✖ fail module_aglu_LB141.ag_Fert_IFA_ctry_crop
: target module_aglu_LB141.ag_Fert_IFA_ctry_crop failed.
diagnose(module_aglu_LB141.ag_Fert_IFA_ctry_crop)$error$message:
... must be empty.
diagnose(module_aglu_LB141.ag_Fert_IFA_ctry_crop)$error$calls:
gcamdata:::module_aglu_LB141.ag_Fert_IFA_ctry_crop("MAKE", c(aglu.FAO.FAO_ag_items_PRODSTAT,
common.iso_GCAM_regID, aglu.AGLU_ctry, L100.LDS_ag_HA_ha,
L100.FAO_ag_HA_ha, aglu.IFA2002_Fert_ktN, aglu.IFA_Fert_ktN))
L100.LDS_ag_HA_ha %>% left_join(FAO_ag_items_PRODSTAT[c("item",
"GTAP_crop")], by = "GTAP_crop") %>% drop_na() %>% group_by(iso,
item) %>% summarise(LDS = sum(value)) %>% ungroup() %>% left_join(L141.FAO,
by = c("iso", "item")) %>% replace_na(list(FAO = 0)) %>%
mutate(scaler = pmin(aglu.MAX_FAO_LDS_SCALER, FAO/LDS)) %>%
left_join(FAO_ag_items_PRODSTAT[c("item", "GTAP_crop")],
by = "item", ignore_columns = "item") %>% select(iso,
GTAP_crop, scaler)
select(., iso, GTAP_crop, scaler)
left_join(., FAO_ag_items_PROD

what should I solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions