Skip to content

Commit

Permalink
Merge pull request #9 from InsightRX/fix-testing
Browse files Browse the repository at this point in the history
don't run test if not compiled
  • Loading branch information
roninsightrx committed Feb 26, 2019
2 parents 441abc4 + 21b7692 commit 9f39a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: PKPDsim
Type: Package
Title: Simulate ODE models
Version: 1.0.15
Date: 2019-02-19
Version: 1.0.16
Date: 2019-02-25
Author: Ron Keizer
Maintainer: Ron Keizer <[email protected]>
Depends: R (>= 3.0.2)
Expand Down
4 changes: 3 additions & 1 deletion R/model_from_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ model_from_api <- function(model = NULL,
writeLines(test_txt, fileConn)
close(fileConn)
} else {
stop("Test file not found!")
if(def$build || force) {
stop(paste0("Test file (", test_file,") not found!"))
}
}
}
validation <- NULL
Expand Down

0 comments on commit 9f39a83

Please sign in to comment.