Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (18 sloc) 0.809 kb
ba32a61 add everything back into git repo
erik 'quantitative warlock' shilts authored
1 #' Helpful Logging of a List of Items
2 #' Constructs a single character string of items from a list for
3 #' easy logging to file. If multiple vectors are passed, the vectors
4 #' will concatenated vector-wise first and collapsed into a single
5 #' string second.
6 #'
7 #' @param \dots vectors of items from a list
f3bb7d6 add roxygen tag for missing parameter to log_list; add functionality to ...
erik 'quantitative warlock' shilts authored
8 #' @param sep_string string to use for separating concatenated items
9 #' @param collapse_string string used to separate items when collapsed into a single string
ba32a61 add everything back into git repo
erik 'quantitative warlock' shilts authored
10 #' @author Erik Shilts
11 #' @note Part of a suite of Opower packages
12 #' @examples
13 #' log_list(letters[1:4], 1:2)
14 #' log_list(letters[1:4], 1:2, sep_string='-sep-', collapse_string='~col~')
15 #' log_list(letters[1:4])
16 #' @export
17 log_list <- function(..., sep_string=':', collapse_string=', ')
18 paste(..., sep=sep_string, collapse=collapse_string)
Something went wrong with that request. Please try again.