Skip to content

Commit

Permalink
updates for CRAN submission
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhooker committed Dec 29, 2015
1 parent f8c3cc0 commit 797c678
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
^.*\.o$
^tools$
^shinyapp$

^cran-comments.md$
^\.travis\.yml$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: PopED
Type: Package
Title: Population (and Individual) Optimal Experimental Design
Version: 0.2.0.9003
Version: 0.3.0
Depends:
ggplot2
Imports:
Expand Down
10 changes: 10 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
PopED News/Changelog

PopED 0.3.0
===========

* Added new optimization methods and tools, see `?poped_optim()`. This function incorporates the new optimization routines `optim_ARS()` and `optim_LS` which are optimized versions of previous optimization algorithms used in PopED. Both can be run with parallelization. `poped_optim()` also incorporates the genetic algorithm from `GA::ga()`, which can also be run with parallelization, and the "L-BFGS-B" method from `stats::optim()`. `poped_optim()` should be more efficient and faster than `poped_optimize()`.

* Changed the default objective function to be the log of the determinant of the FIM. `create.poped.database(ofv_calc_type=4)`

* Various small changes and bug fixes.


PopED 0.2.0
===========

Expand Down
17 changes: 17 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Test environments
* local OS X (10.11.2) install, R 3.2.3
* ubuntu 12.04 (on travis-ci), R 3.2.3
* win-builder (devel and release)

## R CMD check results
There were no ERRORs, WARNINGs or NOTEs.

## Downstream dependencies
I have also run R CMD check on downstream dependencies of PopED
(https://github.com/wch/checkresults/blob/master/httr/r-release).
All packages that I could install passed except:

* Ecoengine: this appears to be a failure related to config on
that machine. I couldn't reproduce it locally, and it doesn't
seem to be related to changes in httr (the same problem exists
with httr 0.4).
6 changes: 3 additions & 3 deletions man/calc_ofv_and_fim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/evaluate.e.ofv.fim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions man/evaluate.fim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/feps.add.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/feps.add.prop.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/feps.prop.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/model_prediction.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/ofv_fim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/plot_efficiency_of_windows.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/plot_model_prediction.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/test_distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test_that("pargen works", {
expect_true(all(pars.ln.1==pars.ln.2))

p.vals <- apply(pars.ln[,1:3],2,function(x) shapiro.test(log(x))[["p.value"]])
expect_that(all(p.vals > 0.8), is_true())
expect_that(all(p.vals > 0.05), is_true())

# Adding 10% Uncertainty to fixed effects normal-distribution (not Favail)
# with normal distributions
Expand All @@ -50,7 +50,7 @@ test_that("pargen works", {
expect_that(all(var.diff.n[1:3]<50),is_true())

p.vals <- apply(pars.n[,1:3],2,function(x) shapiro.test(x)[["p.value"]])
expect_that(all(p.vals > 0.8), is_true())
expect_that(all(p.vals > 0.05), is_true())

# Adding 10% Uncertainty to fixed effects uniform-distribution (not Favail)
mean.diff.u <- (colMeans(pars.u) - bpop_vals_ed_u[,2])/bpop_vals_ed_u[,2]*100
Expand Down
Binary file modified tools/build_poped/To build PopED in R.docx
Binary file not shown.

0 comments on commit 797c678

Please sign in to comment.