R/fn_rc_po_no_td_allcell.R

Defines functions fn_rc_po_no_td_allcell

Documented in fn_rc_po_no_td_allcell

#' Scribus interroge le fichier sla pour extraire tous les nodes des cellules
#' d'un tableau.
#'
#' @param num_objet numéro du tableau
#' @importFrom xml2 xml_find_all
#' @return nodes avec uniquement les cellules du tableau
fn_rc_po_no_td_allcell <- function(num_objet = 6) {
  ls_modele$pg %>% xml2::xml_find_all(".//PAGEOBJECT") %>%
    .[[num_objet]] %>%
    xml2::xml_find_all("TableData") %>%
    xml2::xml_find_all("Cell") -> ph
  return(ph)
}
ggwinter/eptb2022 documentation built on Feb. 19, 2022, 7:17 p.m.