Skip to content

Commit dbc53ff

Browse files
Merge pull request #405 from ggPMXdevelopment/develop
Bump to 1.3.1
2 parents 8ea3f4f + 3992cc0 commit dbc53ff

File tree

10 files changed

+270
-240
lines changed

10 files changed

+270
-240
lines changed

.Rbuildignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
^ggPMX_cheat_sheet_0_9_4.png$
1616
^ggPMX_cheat_sheet_0_9_4.pptx$
1717
^vignettes/ggPMX-nlmixr.Rmd$
18+
#^vignettes/ggPMX-guide.Rmd$
19+
^.*ggPMX-guide\.pdf$
1820
^vignettes/bloq.Rmd$
1921
^man/figures/*.png$
2022
^.github/*
2123
^\.github$
24+
^\.devcontainer$
25+
^\.devcontainer/*
2226
^cran-comments\.md$
2327
^CRAN-SUBMISSION$
2428
^inst/testdata/extdata/for_testing$

.devcontainer/devcontainer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "R (rocker/r-ver base)",
3+
"image": "ghcr.io/rocker-org/devcontainer/r-ver:4.5",
4+
"features": {
5+
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {
6+
"version": "prerelease"
7+
},
8+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
9+
"packages": "libudunits2-dev,libxtst6,libxt6,libmagick++-dev"
10+
},
11+
"ghcr.io/rocker-org/devcontainer-features/r-packages:1": {
12+
"packages": "github::rstudio/renv,tidyverse,here,httpgd"
13+
},
14+
},
15+
"customizations": {
16+
"vscode": {
17+
"extensions": ["mechatroner.rainbow-csv"]
18+
},
19+
"codespaces": {
20+
"openFiles": ["README.md"]
21+
}
22+
}
23+
}

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Description: At Novartis, we aimed at standardizing the set of diagnostic plots
1111
<https://monolixsuite.slp-software.com/r-functions/2024R1/installation-and-initialization>.
1212
When 'lixoftConnectors' is available, 'R' can use 'Monolix' directly to create the required
1313
Chart Data instead of exporting it from the 'Monolix' gui.
14-
Version: 1.3.0
14+
Version: 1.3.1
1515
Authors@R: c(
1616
person("Amine", "Gassem", email="contact@ag-study.com", role=c("aut")),
1717
person("Bruno", "Bieth", email="biethb@hotmail.com", role="aut"),

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# ggPMX (development version)
1+
# ggPMX 1.3.1
2+
3+
* Fixed tests that were writing files in a non-temporary directory
24

35
# ggPMX 1.3.0
46

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This submission is to fix some bugs
1+
This submission is to fix a minor bug causing failing CRAN tests on debian-linux systems due to writing files in a non-temporary directory.

man/ggPMX.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-param_table.R

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -76,36 +76,36 @@ if (helper_skip()) {
7676
})
7777

7878
#------------------- param_table with nlmixr start -----------------------------
79-
context("Test param_table() with nlmixr controller")
80-
if (requireNamespace("nlmixr2est", quietly=TRUE)) {
81-
test_that("param_table: params return: kable", {
82-
skip_on_os("windows")
83-
one.compartment <- function() {
84-
ini({
85-
tka <- 0.45 # Log Ka
86-
tcl <- 1 # Log Cl
87-
tv <- 3.45 # Log V
88-
eta.ka ~ 0.6
89-
eta.cl ~ 0.3
90-
eta.v ~ 0.1
91-
add.sd <- 0.7
92-
})
93-
model({
94-
ka <- exp(tka + eta.ka)
95-
cl <- exp(tcl + eta.cl)
96-
v <- exp(tv + eta.v)
97-
d / dt(depot) <- -ka * depot
98-
d / dt(center) <- ka * depot - cl / v * center
99-
cp <- center / v
100-
cp ~ add(add.sd)
101-
})
102-
}
103-
fit <- nlmixr2est::nlmixr(one.compartment, nlmixr2data::theo_sd, "saem",
104-
control = list(print = 0)
105-
)
106-
ctr <- pmx_nlmixr(fit, conts = c("cl", "v"))
107-
expect_s3_class(param_table(ctr), "knitr_kable")
108-
})
109-
}
79+
# context("Test param_table() with nlmixr controller")
80+
# if (requireNamespace("nlmixr2est", quietly=TRUE)) {
81+
# test_that("param_table: params return: kable", {
82+
# skip_on_os("windows")
83+
# one.compartment <- function() {
84+
# ini({
85+
# tka <- 0.45 # Log Ka
86+
# tcl <- 1 # Log Cl
87+
# tv <- 3.45 # Log V
88+
# eta.ka ~ 0.6
89+
# eta.cl ~ 0.3
90+
# eta.v ~ 0.1
91+
# add.sd <- 0.7
92+
# })
93+
# model({
94+
# ka <- exp(tka + eta.ka)
95+
# cl <- exp(tcl + eta.cl)
96+
# v <- exp(tv + eta.v)
97+
# d / dt(depot) <- -ka * depot
98+
# d / dt(center) <- ka * depot - cl / v * center
99+
# cp <- center / v
100+
# cp ~ add(add.sd)
101+
# })
102+
# }
103+
# fit <- nlmixr2est::nlmixr(one.compartment, nlmixr2data::theo_sd, "saem",
104+
# control = list(print = 0)
105+
# )
106+
# ctr <- pmx_nlmixr(fit, conts = c("cl", "v"))
107+
# expect_s3_class(param_table(ctr), "knitr_kable")
108+
# })
109+
# }
110110
#------------------- param_table with nlmixr start -----------------------------
111111
}

tests/testthat/test-plot-individual.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,13 @@ if (helper_skip()) {
348348
expect_identical(add_f$plot_env$dname, "IND")
349349
expect_true(add_f$plot_env$gp$is.draft)
350350
expect_identical(add_f$plot_env$aess$x, "TIME")
351-
351+
#expect_identical(add_f$labels$colour, "isobserv")
352352
if (packageVersion("ggplot2") > "3.5.2") {
353-
expect_identical(ggplot2::build_ggplot(add_f)$plot$labels$colour, "isobserv")
353+
expect_identical(ggplot2::ggplot_build(add_f)$plot$labels$colour, "isobserv")
354354
} else {
355355
expect_identical(add_f$labels$colour, "isobserv")
356356
}
357+
357358
})
358359

359360
test_that("add_footnote: params result: error missing arguments", {

0 commit comments

Comments
 (0)