Skip to content

Commit

Permalink
NMrelate now respects par.type
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelff committed Dec 14, 2024
1 parent 9175125 commit 162456b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: NMdata
Type: Package
Title: Preparation, Checking and Post-Processing Data for PK/PD Modeling
Version: 0.1.8.905
Version: 0.1.8.906
Authors@R:
c(person(given="Philip", family="Delff",
email = "philip@delff.dk",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* `NMwriteSection()` would fail if the first section in a control
stream was modified.

* `NMrelate()` was ignoring the `par.type` argument.

# NMdata 0.1.8

## New features
Expand Down
3 changes: 1 addition & 2 deletions R/NMrelate.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
NMrelate <- function(file,lines,modelname,par.type,col.model,sections,as.fun){

text <- NULL
par.type <- NULL

if(missing(file)) file <- NULL
if(missing(lines)) lines <- NULL
Expand All @@ -46,7 +45,7 @@ NMrelate <- function(file,lines,modelname,par.type,col.model,sections,as.fun){


lines <- getLines(file=file,lines=lines,col.model=col.model,modelname=modelname,as.one=TRUE)

list.relate <- lapply(par.type,function(tp) {
lines[,NMrelateOne(lines=text,par.type=tp,as.fun="data.table"),by=col.model]
})
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ NMdataConf(reset=TRUE)

##' @importFrom utils packageVersion
.onAttach <- function(libname,pkgname){
packageStartupMessage(paste0("NMdata ",packageVersion("NMdata"),". Browse NMdata documentation at\nhttps://nmautoverse.github.io/NMdata/"))
packageStartupMessage(paste0("NMdata ",packageVersion("NMdata"),". Browse NMdata documentation at\nhttps://NMautoverse.github.io/NMdata/"))
}

0 comments on commit 162456b

Please sign in to comment.