Nothing
data("raman_hdpe")
tiny_map <- read_extdata("CA_tiny_map.zip") |> read_any()
test_that("process_spec() handles input errors corretly", {
process_spec(1:1000) |> expect_error()
})
test_that("process_spec() returns expected values", {
process_spec(raman_hdpe, adj_intens = T, conform_spec = T, restrict_range = T,
flatten_range = T, subtr_baseline = T, smooth_intens = T) |>
expect_silent()
conf <- process_spec(tiny_map) |> expect_silent()
expect_equal(conf, conform_spec(tiny_map, range = NULL, res = 5) |>
smooth_intens(polynomial = 3,
window = 11,
derivative = 1,
abs = T,
make_rel = T))
expect_true(check_OpenSpecy(conf))
proc <- process_spec(raman_hdpe,
smooth_intens = TRUE,
smooth_intens_args = list(
polynomial = 3,
window = 11,
derivative = 1
)) |> expect_silent()
expect_true(check_OpenSpecy(proc))
expect_equal(proc, conform_spec(raman_hdpe) |>
smooth_intens(derivative = 1, make_rel = T))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.