knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Valida RA

work in progress

NEW:

COMMING SOON:

Description

This package contains functions to work with brazilian documents ids as CPF, PIS, CNPJ and CNS. It can validate them e outputing the result on different ways. Also, it can handle situations where the ids has just its prefix(first ten digits, on cpf, for example) and it is needed to generate the last one.

Installation

The package is not yet on CRAN, so to install it is needed to use devtools. Devtools can be installed as a normal R package:

```r install.packages("devtools")

After that, it is possible install validaRA from the github repository using devtools:

```r
devtools::install_github("ipea/validaRA") 

The package, validaRA, depends on c++ code that has to be compiled, then Rtools must be installed. It can be found here

Basic Usage

```r

Validanting cpf

result <- valida_doc(c("788.346.838-38"), type = "cpf")

Validanting pis

result <- valida_doc(c("788.346.838-38"), type = "pis")



ipea/validaRA documentation built on Nov. 25, 2022, 10:11 p.m.