Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding characters fails for some matrices #239

Open
hlapp opened this issue Jun 10, 2019 · 0 comments
Open

Adding characters fails for some matrices #239

hlapp opened this issue Jun 10, 2019 · 0 comments
Labels

Comments

@hlapp
Copy link
Contributor

hlapp commented Jun 10, 2019

The following snippet:

nex <- nexml_read(system.file("examples", "ontotrace-result.xml", package = "RNeXML"))
x <- nexml_write(characters = get_characters(nex))

results in the following error (with traceback):

 Error in map[2, ] : incorrect number of dimensions 

10.map_states_to_symbols(states[[char@states]]) at deprecated.R#127
9. FUN(X[[i]], ...) 
8. lapply(format@char, function(char) {
    states <- format@states
    ids <- sapply(states, function(states) states@id)
    names(states) <- ids ... at deprecated.R#121
7. map_state_to_symbol(characters@format) at internal_get_node_maps.R#34
6. FUN(X[[i]], ...) 
5. lapply(nexml@characters, function(characters) {
    if (!isEmpty(characters@format@states)) 
        map_state_to_symbol(characters@format)
    else NULL ... at internal_get_node_maps.R#33
4. get_state_maps(nexml) at add_characters.R#195
3. add_rows(nexml, x, i, j) at add_characters.R#49
2. add_characters(characters, nexml = nexml) at nexml_write.R#63
1. nexml_write(characters = get_characters(nex)) 

This was initially reported in passing in #235, and remains unresolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant