1
0

update plotting code and makefile

This commit is contained in:
2022-06-30 23:00:28 -07:00
parent 588bdd7ed7
commit cb1e895ff1
11 changed files with 1360 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
library(testthat)
library(data.table)
source("../RemembeR.R")
test_that("single numbers",{
remember(1,"one")
expect_equal(r$one,1)
}
)
test_that("prefixes",{
set.remember.prefix("prefix")
remember(2,"two")
expect_equal(r$prefix$two,2)
expect_equal(r$one,1)
}
)
test.dt <- as.data.table(data("mtcars"))
test_that("data.tables",{
set.remember.prefix("")
remember(test.dt, 'test.dt')
expect_equal(r$test.dt,test.dt)
}
)