powered by
%p% and %s% are wrappers for paste0(..., collapse = '') and paste(..., collapse = ' '), respectively, which combine two character vectors.
%p%
%s%
paste0(..., collapse = '')
paste(..., collapse = ' ')
x %p% yx %s% y
x %s% y
A character vector
# NOT RUN { 'the quick brown fox jum' %p% 'ped over the lazy dog' gen_sql <- function(column, table) "SELECT" %s% column %s% "FROM" %s% table # }
Run the code above in your browser using DataLab