tests/testthat/test-ryacas-init.R

context("Ryacas init script")

test_that("Ryacas init script", {
  
  path <- system.file(package = "Ryacas", "yacas")
  
  invisible(capture.output(yacas_init_force_path(path, ryacas_init = FALSE)))
  # Test it does not work
  # yac_core("4+4")
  
  invisible(capture.output(yacas_init_force_path(path, ryacas_init = TRUE)))
  # Test it works
  # yac_core("4+4")
  
  expect_equal(2, 1+1)
})

Try the Ryacas package in your browser

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

Ryacas documentation built on Jan. 17, 2023, 1:11 a.m.