?xml_add_child needs examples

Aperta
#434 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r
Ambito
documentation

Direzione di ricerca

Start with the xml_add_child() documentation entry and review its argument descriptions. Add runnable examples showing the structure of the XML object and child value, including whether text can be passed directly, so a first-time user can understand how to call the function.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation

I'm trying to use xml_add_child() for the first time, and don't know how to use it. It's clear it should take an XML object and a new child as input, but how exactly should they be structured? Can I pass text as the child, or does it need to be an XML object?

I consulted the docs, where I was met with:

xml_add_child(.x, .value, ..., .where = length(xml_children(.x)), .copy = TRUE)
.value: node to insert.

And no examples. Not very helpful.

Lingua principale
R
Stelle
227
Fork
86
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di r-lib/xml2

Tutte le issue di r-lib/xml2

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.