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

Add build_vignette() in buildPkg.R.

parent e5fa25df
Branches
Tags v1.1.0
No related merge requests found
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
## Script to build and verify the package. ## Script to build and verify the package.
if(!grepl(x=getwd(), pattern="/mcglm$")){ if(!grepl(x=getwd(), pattern="/mcglm$")){
stop("Move to /mcglm directory.") if (Sys.info()["user"]=="walmes"){
setwd("~/GitLab/mcglm")
}
## stop("Move to /mcglm directory.")
cat(getwd(), "\n")
} }
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
...@@ -12,7 +16,6 @@ library(devtools) ...@@ -12,7 +16,6 @@ library(devtools)
## Load the package (to make functiona available). ## Load the package (to make functiona available).
load_all() load_all()
search()
## Create/update NAMESPACE, *.Rd files. ## Create/update NAMESPACE, *.Rd files.
document() document()
...@@ -39,6 +42,18 @@ build(manual = TRUE, vignettes = FALSE) ...@@ -39,6 +42,18 @@ build(manual = TRUE, vignettes = FALSE)
# build the binary version for windows (not used) # build the binary version for windows (not used)
# build_win() # build_win()
##----------------------------------------------------------------------
## Package vignette.
## Based on: http://r-pkgs.had.co.nz/vignettes.html
## Create the vignette template. Do just once.
## use_vignette("vignette-01")
build_vignettes()
## vignette()
## vignette("vignette-01", package="mcglm")
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
## Generate the README.md. ## Generate the README.md.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment