View source: R/assertFinalSlash.R
assertFinalSlash | R Documentation |
Make Sure that Strings End With Slash
assertFinalSlash(x, method = 1L)
x |
vector of character |
method |
integer value specifying the implementation method. |
assertFinalSlash(c("a", "b", "c"))
assertFinalSlash(c("a/", "b/", "c/"))
assertFinalSlash(c("a//", "b", "c/"))
# Use method 2 or 3 to replace multiple slashes with one slash
assertFinalSlash(c("a//", "b", "c/"), method = 2)
assertFinalSlash(c("a//", "b", "c/"), method = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.