split_pkgs: Given a character string, split it by white spaces or a custom string
Description
This package often reads R package names as a character string from
environment variables or YAML, and we need to split the character string into
a character vector.
Usage
split_pkgs(string, split = "\\s+")
Arguments
string
a charactor string of length 1
split
a character string as the separator to split the string