Skip to content

Commit

Permalink
avoid /inst in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelff committed Aug 26, 2024
1 parent fb57b5c commit d95f845
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test_NMorderColumns.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ test_that("last NULL",{

fileRef <- "testReference/NMorderColumns_01.rds"

pk <- readRDS(file=system.file("examples/data/xgxr2.rds",package="NMdata"))
## pk <- readRDS(file=system.file("examples/data/xgxr2.rds",package="NMdata"))
pk <- readRDS(file="testData/data/xgxr2.rds")

pk1 <- NMorderColumns(pk)
pk2 <- NMorderColumns(pk,last=c("FLAG",NULL))
Expand All @@ -25,7 +26,8 @@ test_that("Non-numeric DATE and TIME",{

fileRef <- "testReference/NMorderColumns_02.rds"

pk <- readRDS(file=system.file("examples/data/xgxr2.rds",package="NMdata"))
## pk <- readRDS(file=system.file("examples/data/xgxr2.rds",package="NMdata"))
pk <- readRDS(file="testData/data/xgxr2.rds")

pk[,time.tz:=as.POSIXct("2000/01/01")+TIME*3600]
pk[,DATE:=as.character(as.Date(time.tz),format="%y/%m/%d")]
Expand Down

0 comments on commit d95f845

Please sign in to comment.