Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Manuscript/stitch.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ for( i in 1:length( rmdFiles ) )
cat( rmdFiles[i] )
if( i == 1 )
{
cmd <- paste( "type", rmdFiles[i], ">", stitchedFile )
cmd <- paste( "cat", rmdFiles[i], ">", stitchedFile )
} else {
cmd <- paste( "type", rmdFiles[i], ">>", stitchedFile )
cmd <- paste( "cat", rmdFiles[i], ">>", stitchedFile )
}
shell( cmd )
system( cmd )
}

cat( '\n Pandoc rendering', stitchedFile, '\n' )
Expand Down
37 changes: 37 additions & 0 deletions Manuscript/stitch_win.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
library( rmarkdown )
library( ggplot2 )

stitchedFile <- "stitched.md"

rmdFiles <- c( "format.md",
"titlePage.md",
"abstract.md",
"intro.md",
"introAnts.md",
"resultsAllen.md",
"resultsDevCCF.md",
"resultsKK.md",
"discussion.md",
"methods.md",
"data_availability.md",
"acknowledgments.md",
"author_contributions.md",
"references.md"
)

for( i in 1:length( rmdFiles ) )
{
cat( rmdFiles[i] )
if( i == 1 )
{
cmd <- paste( "type", rmdFiles[i], ">", stitchedFile )
} else {
cmd <- paste( "type", rmdFiles[i], ">>", stitchedFile )
}
shell( cmd )
}

cat( '\n Pandoc rendering', stitchedFile, '\n' )
render( stitchedFile, pdf_document( number_sections = TRUE, pandoc_args = "--variable=subparagraph" ) )
render( stitchedFile, latex_document() )