Skip to content
Snippets Groups Projects
Commit 856d7f96 authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Hadleyfy file, build vignettes TRUE.

parent 9c91b56a
No related branches found
No related tags found
No related merge requests found
##----------------------------------------------------------------------
## Script to build and verify the package.
if(!grepl(x=getwd(), pattern="/mcglm$")){
if (Sys.info()["user"]=="walmes"){
if (!grepl(x = getwd(), pattern = "/mcglm$")) {
if (Sys.info()["user"] == "walmes") {
setwd("~/GitLab/mcglm")
}
## stop("Move to /mcglm directory.")
## stop('Move to /mcglm directory.')
cat(getwd(), "\n")
}
......@@ -38,7 +38,7 @@ packageVersion("mcglm")
##----------------------------------------------------------------------
## Build the package (it will be one directory up).
build(manual = TRUE, vignettes = FALSE)
build(manual = TRUE, vignettes = TRUE)
# build the binary version for windows (not used)
# build_win()
......@@ -58,7 +58,7 @@ build_vignettes()
## Generate the README.md.
library(knitr)
knit(input="README.Rmd")
knit(input = "README.Rmd")
##----------------------------------------------------------------------
## Examples.
......@@ -77,11 +77,11 @@ install.packages(pkg, repos = NULL)
## Test using devtools::install_git().
libTest <- path.expand("~/R-test/")
if (file.exists(libTest)){
if (file.exists(libTest)) {
file.remove(libTest)
}
dir.create(path = libTest)
.libPaths(new = c(libTest, .libPaths())); .libPaths()
install_git(url = "http://git.leg.ufpr.br/wbonat/mcglm.git",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment