Skip to content

Commit

Permalink
pull all code out of rdev; makescripts in ./inst/maintenance metrumre…
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebaron committed Dec 16, 2016
1 parent 7fa98d4 commit 4a905b4
Show file tree
Hide file tree
Showing 273 changed files with 27 additions and 15 deletions.
12 changes: 12 additions & 0 deletions rdev/.Rbuildignore → .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

^.*\.Rproj$
^\.Rproj\.user$
vignettes/.*[.]toc$
Expand All @@ -16,4 +17,15 @@ inst/project/.*[.]so$
inst/models/.*[.]o$
inst/models/.*[.]so$
inst/models/.*[.]check$
inst/maintenance
src/.*[.]tar.gz$
.*[.]tar.gz$
img
README.Rmd
README.md
NEWS.md
.git
.gitignore
.travis.yml
.Rinstignore
Makefile
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
SHELL := /bin/bash
#LIBDIR=${HOME}/Rlibs/lib
PACKAGE=mrgsolve
VERSION=$(shell grep Version rdev/DESCRIPTION |awk '{print $$2}')
VERSION=$(shell grep Version DESCRIPTION |awk '{print $$2}')
TARBALL=${PACKAGE}_${VERSION}.tar.gz
PKGDIR=rdev/
PKGDIR=.
CHKDIR=Rchecks

## Set libPaths:
Expand All @@ -25,11 +25,11 @@ all:

.PHONY: doc
doc:
Rscript makescripts/doc_mrgsolve.R
Rscript inst/maintenance/doc_mrgsolve.R

.PHONY: staticdoc
staticdoc:
Rscript makescripts/staticdocs.R
Rscript inst/maintenance/staticdocs.R

build:
R CMD build --md5 $(PKGDIR)
Expand Down Expand Up @@ -58,16 +58,16 @@ check-cran:

test:
R CMD INSTALL ${PKGDIR}
Rscript -e 'library(testthat)' -e 'test_dir("rdev/tests/testthat")'
Rscript -e 'library(testthat)' -e 'test_dir("tests/testthat")'

.PHONY: tests
tests:
Rscript makescripts/tests.R
Rscript inst/maintenance/tests.R

clean:
if test -d ${CHKDIR}/mrgsolve.Rcheck; then rm -rf ${CHKDIR}/mrgsolve.Rcheck;fi

datasets:
Rscript makescripts/datasets.R
Rscript inst/maintenance/datasets.R


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions makescripts/datasets.R → inst/maintenance/datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ data2 <- merge(data,idata[,c("ID","CL", "VC", "KA")], by="ID", sort=FALSE, all.x
#head(data2)

exidata <- idata
save(exidata,file="rdev/data/exidata.RData")
save(exidata,file="data/exidata.RData")

extran1 <- doses
save(extran1, file="rdev/data/extran1.RData")
save(extran1, file="data/extran1.RData")

extran2 <- data
save(extran2, file="rdev/data/extran2.RData")
save(extran2, file="data/extran2.RData")

extran3 <- data2
save(extran3,file="rdev/data/extran3.RData")
save(extran3,file="data/extran3.RData")

data(Theoph)
dd <- as.data.frame(Theoph)
Expand All @@ -90,7 +90,7 @@ dd$cmt[dd$evid==1] <- 1
dd$conc[dd$time==0] <- 0

exTheoph <- dd
save(exTheoph, file="rdev/data/exTheoph.RData")
save(exTheoph, file="data/exTheoph.RData")


library(MASS)
Expand All @@ -113,7 +113,7 @@ names(pars) <- gsub("SG", "SIGMA", names(pars))
pars$run <- 1:nrow(pars)
pars <- shuffle(pars, "run")
exBoot <- pars
save(exBoot, file="rdev/data/exBoot.RData")
save(exBoot, file="data/exBoot.RData")



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ message("\n\nwriting documentation ... \n")
library(methods)
library(devtools)

pkg <- file.path("rdev")
pkg <- file.path(".")
## message("\nwriting header files for nullmodel and housemodel\n")
r <- file.path(pkg,"R")
src <- file.path(pkg,"src")
Expand All @@ -16,7 +16,7 @@ x2 <- file.copy(file.path(inc,"mrgsolv.h"),file.path(inst,"base", "mrgsolv.h"),o
stopifnot(all(c(x1,x2)))


document(pkg)
document()

## I think mrgsolve functions available after doc
foo <- mrgsolve:::as_pack_mod("housemodel",proj, "mrgsolve")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added inst/project/housemodel.RDS
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed rdev/inst/project/housemodel.RDS
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4a905b4

Please sign in to comment.