Skip to content

Checking code

Raymond R. Balise, PhD edited this page Apr 7, 2024 · 1 revision

Unit tests for this project are at best weird. Rays checking code is:

library(rUM)
make_project("~/Desktop/test_r", type = "R")
make_project("~/Desktop/test_q", type = "Q")
make_project("~/Desktop/test.r.package", type = "R", vignette=TRUE)
make_project("~/Desktop/test.q.package", type = "Q", vignette=TRUE)

# should fail
make_project("~/Desktop/test_r", type = "R")
make_project("~/Desktop/test_q", type = "Q")
make_project("~/Desktop/test.r.package", type = "R", vignette=TRUE)
make_project("~/Desktop/test.q.package", type = "Q", vignette=TRUE)

# should work but potentially problematic (somebody could clobber their work)
make_project("~/Desktop/test.r.package", type = "R", vignette=TRUE, overwrite = T)
make_project("~/Desktop/test.q.package", type = "Q", vignette=TRUE, overwrite = T)
Clone this wiki locally