FundyPhytoPhys / prochlorococcus_o2

Assembly and analyses of data on responses of Prochlorococcus to low O2.
0 stars 0 forks source link

Fix YAML affiliation problem #8

Closed mireillesavoie closed 8 months ago

mireillesavoie commented 8 months ago

Error Error in yaml::yaml.load(..., eval.expr = TRUE) : Duplicate map key: 'institute' Calls: ... parse_yaml_front_matter -> yaml_load -> In addition: Warning messages: 1: In yaml::yaml.load(..., eval.expr = TRUE) : NAs introduced by coercion: 1,2 is not an integer 2: In yaml::yaml.load(..., eval.expr = TRUE) : NAs introduced by coercion: 1,3 is not an integer 3: In yaml::yaml.load(..., eval.expr = TRUE) : NAs introduced by coercion: 1,4 is not an integer 4: In yaml::yaml.load(..., eval.expr = TRUE) : NAs introduced by coercion: 1,5 is not an integer Execution halted

mireillesavoie commented 8 months ago

I added a space after the comma for multiple affiliations. That seemed to have solved that issue. Another issue was the occurrence of multiple 'institutes' so deleted all others after MtA. No more errors referring to the YAML when I knit but there are more errors later on that won't allow a knit so can't confirm if the YAML produces what we want. Will close after confirmation of a knitted version

mireillesavoie commented 8 months ago

removed affli:, replaced with institute: [mta, ubc] (example where mta and ubc are define later in YAML)