Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history


# Conflicts:
#	R/scheme_install_r_package.R
  • Loading branch information
rkrug committed Jan 8, 2020
2 parents 540f583 + d46c634 commit 564a376
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ READMERMD = Readme.Rmd
READMEMD = Readme.md
READMEHTML = Readme.html

SCHEMEMAKE = library(dmdScheme); \
setwd('SCHEME_PACKAGE'); \
scheme_make( \
schemeDefinition = 'dmdScheme.xlsx', \
examples = list.dirs('examples/', recursive = FALSE), \
install_R_package = 'install_R_package.R', \
path = '.', \
overwrite = TRUE \
)

#############

all: check clean_web web clean_check
Expand All @@ -38,6 +48,12 @@ all: check clean_web web clean_check

clean: clean_web

########### scheme package ###########

scheme_package:
Rscript -e "$(SCHEMEMAKE)"


########### Website ###########

####
Expand Down Expand Up @@ -150,4 +166,4 @@ list: list_variables list_targets

#############

.PHONY: list files update clean clean_vignettes clean_web clean_html publish docs
.PHONY: list files update clean clean_vignettes clean_web clean_html publish docs scheme_package
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ importFrom(utils,URLencode)
importFrom(utils,browseURL)
importFrom(utils,download.file)
importFrom(utils,glob2rx)
importFrom(utils,installed.packages)
importFrom(utils,package.skeleton)
importFrom(utils,packageName)
importFrom(utils,packageVersion)
importFrom(utils,read.csv)
importFrom(utils,remove.packages)
importFrom(utils,untar)
importFrom(utils,write.table)
importFrom(writexl,write_xlsx)
Expand Down
3 changes: 2 additions & 1 deletion R/scheme_install_r_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#'
#' @rdname scheme
#'
#' @importFrom utils installed.packages remove.packages
#' @export
#'
#' @examples
Expand All @@ -30,7 +31,7 @@ scheme_install_r_package <- function(
installed <- system.file(package = name) != ""
if (installed) {
if (reinstall) {
remove.packages("name")
utils::remove.packages("name")
} else {
message(
"Package ", name, " is already installed!\n",
Expand Down
Binary file modified SCHEME_PACKAGE/dmdScheme_0.9.5.tar.gz
Binary file not shown.
Binary file removed SCHEME_PACKAGE/dmdScheme_0.9.5.xlsx
Binary file not shown.
7 changes: 6 additions & 1 deletion SCHEME_PACKAGE/install_R_package.R
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
devtools::install_github("Exp-Micro-Ecol-Hub/dmdScheme",ref = "master", force = TRUE)
devtools::install_github(
repo = "Exp-Micro-Ecol-Hub/dmdScheme",
ref = "master",
force = TRUE,
upgrade = "never"
)

0 comments on commit 564a376

Please sign in to comment.