Closed sgibb closed 1 year ago
Hm, I don't see any added value by returning FALSE
if wrong formulas/elements are provided. To me returning NA
would make most sense - so I assume we close this PR?
I agree, closed in favour of the behaviour introduced in #65 .
This PR fixes #63.
containsElements
now returnsNA
forNA
, andFALSE
for invalid elements (like"Z"
).I am not sure about the return value for invalid elements. IMHO
NA
would be fine (in that case this PR is superfluous).If this PR is needed, we could argue about the use of
suppressWarnings
insidecontainsElements
.containsElements("H2O", "Z")
will returnFALSE
and produce a warning about "Z". (If we ignore this PR the result would beNA
anyway).