Skip to content

Commit

Permalink
ajuste
Browse files Browse the repository at this point in the history
  • Loading branch information
jjesusfilho committed Nov 4, 2023
1 parent 10deb8a commit 333a4a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
inst/doc
data-raw
8 changes: 1 addition & 7 deletions R/tjsp_ler_partes.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Ler Partes do cpopg ou cposg
#' Ler Partes do cpopg ou cposg, quando baixados por número do processo.
#'
#' @param arquivos Vetor de arquivos
#' @param diretorio Diretório se não informar arquivos
Expand Down Expand Up @@ -29,11 +29,6 @@ tjsp_ler_partes <- function(arquivos = NULL,diretorio = ".") {

x <- xml2::read_html(.x)

# processo <- x |>
# xml2::xml_find_first("//span[@id='numeroProcesso']") |>
# xml2::xml_text() |>
# stringr::str_remove_all("\\D+")

processo <- .x |>
stringr::str_extract("\\d{20}")

Expand Down Expand Up @@ -67,4 +62,3 @@ tjsp_ler_partes <- function(arquivos = NULL,diretorio = ".") {
},NULL))

}

0 comments on commit 333a4a5

Please sign in to comment.