View source: R/check-invalid-characters.R
| check_invalid_characters | R Documentation | 
Check for non-ascii characters in columns.
check_invalid_characters( data, success_msg = "There are no invalid characters", fail_msg = "There is an invalid character in a column" )
data | 
 Data to check  | 
success_msg | 
 Message indicating the check succeeded.  | 
fail_msg | 
 Message indicating the check failed.  | 
A condition object indicating whether the data contains columns with a non-ascii character.
dat <- tibble::tibble(
  fails1 = c("study 1", "study&2"),
  succeeds = c("file1.ext", "file2.ext"),
  fails2 = c("foo<0xa0>", "bar")
)
check_invalid_characters(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.