tests/testthat/cu.R

# The wordpredictor options
wp <- getOption("wordpredictor")
# An object of class EnvManager is created
em <- EnvManager$new(ve = wp$ve)
# If the ea option is 't'
if (wp$ea == "t") {
    # The test environment is removed
    em$td_env(T)
} else if (wp$ea == "c") {
    # The test environment is copied
    em$cp_env()
}

Try the wordpredictor package in your browser

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

wordpredictor documentation built on Jan. 4, 2022, 5:07 p.m.