expand_braces()
, str_expand_braces()
, and glob()
now support a new argument engine
(#4):
If 'r'
use a pure R parser.
'v8'
use the 'braces' Javascript parser via the suggested V8 package.NULL
use 'v8'
if 'V8'
package detected else use 'r'
;
in either case send a message()
about the choice
unless getOption(bracer.engine.inform')
is FALSE
.The 'braces' Javascript parser can handle some edge cases that the pure R parser cannot.
expand_braces()
now handles vectorized input and returns one character vector with all the brace expansions. New function str_expand_braces()
offers an alternative that instead returns a list of character vectors.glob
provides a wrapper around Sys.glob
that supports
both brace and wildcard expansion on file paths.expand_braces()
can now parse nested braces.expand_braces()
function which has partial support for Bash-style brace expansion.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.