Given an input directory merge all the files into one large file. Expects each file to have multiple documents each delimited by newline. If that is not the case, set the newline argument to 1 to ensure each document is delimited by newlines.
1 | rcpp_join(idir, ofilename, newline)
|
idir |
A string specifying the path to the input directory. |
ofilename |
A string specifying the path to the outputfile. |
newline |
An int, if set to 0 files are just concatenated as they are if set to 1 the files have their newlines replaced by spaces and when they are merged together, a newline is added between them. Returns number of files that were joined. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.