Skip to content

ikelaiah/rmd2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RMD2MD

I work with lots of Rmd files (Rmarkdown). Often, I need to collaborate with other dev who don't work with Rmd files.

So, I wrote a little D program that reads Rmd files from a path and converts each file to a Markdown file (and can rendered using general Markdown viewer without using RStudio).

Installation

You must have a D Language compiler. No other installation are needed.

Input path

A input file should contains valid URLs separated by a new line. Examples are provided in the repo.

Usage

Compile using a D lang compiler and run it using -p <path of Rms files>.

An example to convert Rmd to MD using the dmd compiler.

$ dmd rmd2md.d
$ ./rmd2md.exe -p "\path\to\Rmd-files\" -o "\path\to-save\Rmd-files\"

Alternatively, if you have the dmd compiler installed, you can run this like a script using rdmd tool.

For example.

$ rdmd ./rmd2md.d -p "\path\to\Rmd-files\" -o "\path\to-save\Rmd-files\"

License

MIT

About

Converts Rmd files to Markdown file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages