tests/testthat/test_searchColRow.R

library(data.table)
context("searchColRow")

test_that("basic",{
    
    fileRef <- "testReference/searchColRow_01.rds"

    file.mod <- "testData/nonmem/xgxr022.mod"
    inp <- NMscanInput(file.mod,as.fun="data.table")
    ## inp[,myrow:=.I]

    res1 <- searchColRow(file=file.mod,file.mod=file.mod,formats.read=c("rds","csv"),
                         dir.data=NULL,file.data=NULL,
                         translate.input=TRUE,col.id="ID",
                         args.fread=NMdataConf()$args.fread,
                         tab.row=inp
                         )

    expect_equal_to_reference(res1,fileRef)

})

Try the NMdata package in your browser

Any scripts or data that you put into this service are public.

NMdata documentation built on April 4, 2025, 2:11 a.m.