Remove the lines start with # or without any information.
line_clean(lines = NULL, file = NULL)
a vector of character strings
a vector of character strings. The strings are containing the lines of template file. If the file parameter is NULL, this parameter should be set.
a character specifying the template file path. If this parameter is setted, the lines parameter will be replaced.
strs <- c("#comment","DATA")
line_clean(lines=strs)
Run the code above in your browser using DataLab