Skip to content
/ validaRA Public

❗ This is a read-only mirror of the CRAN R package repository. validaRA — Validate Brazilian Administrative Registers. Homepage: https://github.com/ipea/validaRA Report bugs for this package: https://github.com/ipea/validaRA/issues/

Notifications You must be signed in to change notification settings

cran/validaRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valida RA Coverage Status

work in progress

NEW:

  • Generate last digit of pis

COMMING SOON:

  • Generate last digits for any RA document

Description

This package contains functions to work with brazilian documents ids as CPF, PIS and CNPJ. 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:

install.packages("devtools") 

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

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

# Validanting cpf
result <- valiada_doc(c("788.346.838-38"), type = "cpf")

# Validanting pis
result <- valiada_doc(c("788.346.838-38"), type = "pis")

About

❗ This is a read-only mirror of the CRAN R package repository. validaRA — Validate Brazilian Administrative Registers. Homepage: https://github.com/ipea/validaRA Report bugs for this package: https://github.com/ipea/validaRA/issues/

Resources

Stars

Watchers

Forks

Packages

No packages published