ropensci / RNeXML

Implementing semantically rich NeXML I/O in R
https://docs.ropensci.org/RNeXML
Other
13 stars 9 forks source link

nexml_read and get_characters give warnings #139

Closed xu-hong closed 5 years ago

xu-hong commented 8 years ago

There are warning given out every time you try to read or parse a nexml. Not sure where it comes from, but it seems harmless. Maybe okay to suppress it?

> nex <- RNeXML::nexml_read("https://raw.githubusercontent.com/ropensci/RNeXML/master/inst/examples/characters.xml")
There were 36 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In fromNeXML(new("state"), from) : NAs introduced by coercion
2: In fromNeXML(new("state"), from) : NAs introduced by coercion
3: In fromNeXML(new("state"), from) : NAs introduced by coercion
4: In fromNeXML(new("state"), from) : NAs introduced by coercion
5: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
6: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
7: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
8: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
9: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
10: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
11: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
12: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
13: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
14: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
15: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
16: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
17: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
18: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
19: In fromNeXML(new("state"), from) : NAs introduced by coercion
20: In fromNeXML(new("state"), from) : NAs introduced by coercion
21: In fromNeXML(new("state"), from) : NAs introduced by coercion
22: In fromNeXML(new("state"), from) : NAs introduced by coercion
23: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
24: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
25: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
26: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
27: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
28: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
29: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
30: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
31: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
32: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
33: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
34: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
35: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
36: In .nextMethod(obj = obj, from = from) : NAs introduced by coercion
> c <- RNeXML::get_characters(nex)
Warning message:
In na_symbol_to_state(.) : NAs introduced by coercion
cboettig commented 8 years ago

Right, they are intentionally introduced and harmless. will suppress now.

cboettig commented 5 years ago

warnings are suppressed