knitr::opts_chunk$set( error = TRUE, collapse = TRUE, comment = "#>", out.width = "100%" )
library(testthat) library(jeksterslabRutils) context("Test util_get_numbers.")
input <- util_rand_str( characters = 50L, digits = TRUE, ext = "inp" ) knitr::kable( x = data.frame( Variable = "`input`", Description = "Input string.", Value = input ), row.names = FALSE )
results <- util_get_numbers( x = input )
Note that only numbers should be retained.
knitr::kable( x = data.frame( Description = "Results.", Parameter = input, Result = as.vector(results) ), row.names = FALSE )
test_that("util_cat_sys works", { expect_equivalent( is.numeric(results), TRUE ) })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.