-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #795 from nlmixr2/795-cran-issue
CRAN issues
- Loading branch information
Showing
9 changed files
with
129 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- This works with the new dparser, PreciseSums and lotri to reduce abi linkages | ||
- This rxode2 combines the rxode2parse rxode2random and rxode2et (as | ||
requested by CRAN) | ||
- explicitly initialized C integer vector `ordS` in rxode2 code to | ||
avoid valgrind warning (as requested by CRAN). | ||
- all other warnings come from the `units` package |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,104 @@ | ||
rxTest({ | ||
rxTest({ | ||
test_that("phi/pnorm/qnorm", { | ||
expect_equal(phi(1:3), pnorm(1:3)) | ||
expect_equal(phi(as.double(1:3)), pnorm(as.double(1:3))) | ||
|
||
o <- rxode2({ | ||
o <- phi(a) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3)) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- pnorm(a) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3)) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- pnorm(a, 0.5) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3), 0.5) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- pnorm(a, 0.5, 2) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3), 0.5, 2) | ||
) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- pnorm() | ||
}))) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- pnorm(a, b, c, d) | ||
}))) | ||
|
||
o <- rxode2({ | ||
o <- qnorm(a) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
suppressWarnings(qnorm(as.double(1:3))) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- qnorm(a, 0.5) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
suppressWarnings(qnorm(as.double(1:3), 0.5)) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- qnorm(a, 0.5, 2) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
suppressWarnings(qnorm(as.double(1:3), 0.5, 2)) | ||
) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- qnorm() | ||
}))) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- qnorm(a, b, c, d) | ||
}))) | ||
|
||
m <- rxode2({ | ||
o <- pnorm(a) | ||
}) | ||
|
||
skip_if_not_installed("units") | ||
expect_error(rxS(m), NA) | ||
|
||
m <- rxode2({ | ||
o <- pnorm(a, b) | ||
}) | ||
|
||
expect_error(rxS(m), NA) | ||
|
||
m <- rxode2({ | ||
o <- pnorm(a, b, c) | ||
}) | ||
|
||
expect_error(rxS(m), NA) | ||
test_that("phi/pnorm/qnorm", { | ||
expect_equal(phi(1:3), pnorm(1:3)) | ||
expect_equal(phi(as.double(1:3)), pnorm(as.double(1:3))) | ||
|
||
o <- rxode2({ | ||
o <- phi(a) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3)) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- pnorm(a) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3)) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- pnorm(a, 0.5) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3), 0.5) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- pnorm(a, 0.5, 2) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
pnorm(as.double(1:3), 0.5, 2) | ||
) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- pnorm() | ||
}))) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- pnorm(a, b, c, d) | ||
}))) | ||
|
||
o <- rxode2({ | ||
o <- qnorm(a) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
suppressWarnings(qnorm(as.double(1:3))) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- qnorm(a, 0.5) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
suppressWarnings(qnorm(as.double(1:3), 0.5)) | ||
) | ||
|
||
o <- rxode2({ | ||
o <- qnorm(a, 0.5, 2) | ||
}) | ||
|
||
expect_equal( | ||
rxSolve(o, data.frame(a = 1:3), et(0))$o, | ||
suppressWarnings(qnorm(as.double(1:3), 0.5, 2)) | ||
) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- qnorm() | ||
}))) | ||
|
||
suppressMessages(expect_error(rxode2({ | ||
o <- qnorm(a, b, c, d) | ||
}))) | ||
|
||
m <- rxode2({ | ||
o <- pnorm(a) | ||
}) | ||
|
||
skip_if_not_installed("units") | ||
expect_error(rxS(m), NA) | ||
|
||
m <- rxode2({ | ||
o <- pnorm(a, b) | ||
}) | ||
|
||
expect_error(rxS(m), NA) | ||
|
||
m <- rxode2({ | ||
o <- pnorm(a, b, c) | ||
}) | ||
|
||
expect_error(rxS(m), NA) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters