![]() ![]() ![]() Here is, point by point, an informal specification of the system. ![]() I envision an open source solution that is based on an updated markdown syntax and the pandoc system. Word has some basic collaborative options (like tracking changes and comments), bibliography (via Endnote or similar tools), and is accepted by most journals. Chances are, that collaborator will be one of the big fishes on your authors list, maybe even your boss. There is no way around it: everybody has it, everybody uses it, sooner or later you will have a co-author who knows how to edit text only when writing an e-mail or when writing in Word. I have a dream: a scientific editor that would be suitable for editing scientific papers. Res <- render(fn2, output_format="html_document", envir=globalenv()) Here is a wrapper function which also opens by default the resulting document in google-chrome:įb <- gsub("\\.rmd$", "", fn, ignore.case=TRUE) But beware! Markdown by default evaluates in its parent environment, so to make sure it is evaluated in the global environment, you need to set an option. Of course, this is annoying, and we can wrap this two commands with a function. First time it will take hours, but then the cache will be separate from your original document:įile.copy("test.rmd", "test_html.rmd", overwrite=TRUE) We create a copy of the document and render it. I found no clean solution to this problem, but here is an ugly hack. If your rmarkdown takes hours to generate, and you want to be able to generate different document output types on the fly, using the output_format option from rmarkdown::render is extremely annoying: every time you change the output format, the cache is reset, so you need to wait hours to get the other format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |