There was a problem fetching the pipeline stages.
Commit 87f874e5 authored by Eduardo E. R. Junior's avatar Eduardo E. R. Junior
Browse files

Adiciona arquivos ocultos para funcionamento do pacote

Showing with 110 additions and 0 deletions
+110 -0
\#*\#
^\.\#*
^.*\.Rproj$
^\.Rproj\.user$
^\.gitlab-ci.yml$
^data-raw$
Rplots.pdf
README.*
STYLEGUIDE.*
CONTRIBUTING.*
LICENSE
_output.yaml
ci-c3sl.R
roteiro.R
style.css
plano.*
\ No newline at end of file
#!/usr/bin/env Rscript
options(echo = TRUE)
#--------------------------------------------
# Carregar pacotes.
# - Para desenvolvimento do pacote
library(devtools)
library(roxygen2)
# - Instalando as dependencias (descritas no DESCRIPTION)
install_deps(dependencies = TRUE,
quiet = TRUE,
upgrade = FALSE,
repos = "http://cran-r.c3sl.ufpr.br/")
sessionInfo()
#--------------------------------------------
# Carregar objetos do pacote.
file.create("NAMESPACE")
load_all()
ls("package:labestData")
packageVersion("labestData")
#--------------------------------------------
# Produzir a documentação dos objetos.
document()
cp <- compareVersion(a = as.character(packageVersion("devtools")),
b = "1.9.1")
if (cp > 0) {
check_man()
} else {
check_doc()
}
#--------------------------------------------
# Checar conteúdo e organização do pacote.
check(cleanup = FALSE,
manual = TRUE,
vignettes = FALSE,
check_dir = "../")
#--------------------------------------------
# Gerar as vinhetas, caso existam.
if (length(list.files("./vignettes"))) {
build_vignettes()
}
#--------------------------------------------
# Construir pacote.
build(manual = TRUE, vignettes = TRUE)
#--------------------------------------------
# Instalar o pacote.
lib <- path.expand("~/R-test/")
dir.create(lib)
.libPaths(new = lib)
.libPaths()
install()
unlink(lib, recursive = TRUE)
#--------------------------------------------
before_script:
- mkdir -p ~/R-tests/
R_build_package:
script:
- ./.build_package.R
tags:
- r
- devtools
- knitr
- rmarkdown
- testthat
\ No newline at end of file
language: r
cache: packages
cran: http://cran-r.c3sl.ufpr.br/
warnings_are_errors: false
r_packages:
- roxygen2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment