Weird behavior of as_list() output
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
The report names read_xml() and as_list() but provides no reproducible XML, R code, file, or test. Start by constructing a minimal XML example and comparing the source with the list returned by as_list(). Done means distinct XML items retain their correct lengths and values, with a regression test for the behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When converting an xml that is read into R using read_xml() into an R list using 'as_list()' the list structure details are correct but the each list item is actually the same and does not follow what the details suggest. I am going to insert a picture to help explain:

The displayed "list of length " under the value column are correct, however when you expand as shown in the image the lengths are not actually what R says it should be. You can see this in the second and fifth "sec"s that I expanded in the attached screenshot. Moreover, all the list items are exactly the same as the first list item, this is not the case in the actual XML nor is it the case before using the as_list() function.
Any help would be greatly appreciated thank you.
- Lenguaje dominante
- R
- Estrellas
- 227
- Forks
- 86
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de r-lib/xml2
-
Export libxml2_version()Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 67/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Optimize xml_path() and xml_find_all() for large node setsPosiblemente ocupada @astruebi la tomó hace 182 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Todos los issues de r-lib/xml2
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Bioconductor/BiocParallel#289 ·
-
automation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
waldronlab/BugSigDBcuration#2224 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
merliseclyde/BAS#118 ·