Skip to content

Commit

Permalink
Rename file to a shorter name.
Browse files Browse the repository at this point in the history
  • Loading branch information
walmes committed May 29, 2017
1 parent 70c6fb8 commit 0ce2fac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
^\.Rproj\.user$
^\.gitlab-ci.yml$
^data-raw$
^.build_package.R$
^.build_pkg.R$
^.gitlab-ci.yml$
^.travis.yml$
^README.Rmd$
Expand Down
19 changes: 7 additions & 12 deletions .build_package.R → .build_pkg.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ Sys.info()
#--------------------------------------------
# Load packages.

# - Para desenvolvimento do pacote
library(devtools)
library(roxygen2)

# - Install dependencies
if (Sys.info()["user"] == "walmes") {
.libPaths(new = "/usr/lib/R/site-library")
}

# Install dependencies.
install_github("walmes/wzRfun")
install_deps(dependencies = TRUE,
quiet = TRUE,
Expand All @@ -28,7 +31,7 @@ print(inpack[order(inpack[, "Package"]), c("Package", "Version")],
#--------------------------------------------
# Load package.

load_all()
devtools::load_all()

pkg <- basename(getwd())
# ls(sprintf("package:%s", pkg))
Expand All @@ -44,15 +47,7 @@ Sys.setenv(`_R_CHECK_ASCII_DATA_` = "FALSE")
# Creates the documentation.

document()

cp <- compareVersion(a = as.character(packageVersion("devtools")),
b = "1.9.1")

if (cp > 0) {
check_man()
} else {
check_doc()
}
check_man()

#--------------------------------------------
# Creates the vignettes.
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
R_build_package:
script:
- ./.build_package.R
- ./.build_pkg.R
tags:
- r
- devtools
Expand Down

0 comments on commit 0ce2fac

Please sign in to comment.