rmdawn package¶
Module contents¶
Rmdawn: a Python package for (de)constructing R markdown files.
-
rmdawn.rmdawn(filenames: List[str]) → str[source]¶ Create an R markdown file from YAML, markdown, and code files.
- Parameters
filenames – A list of YAML, markdown, and code file names.
-
rmdawn.rmdusk(filename: str) → None[source]¶ Extract YAML, code, and markdown files from an R markdown file.
- Parameters
filename – The name of the input R markdown file.
-
rmdawn.extract_after(source: str, start: str) → str[source]¶ Extract all of the characters after
start.- Parameters
source – The input string from which to extract a substring.
start – The substring that marks the extraction starting place.
return – A substring that is extracted from
source.
- Note
The
startstring is not include in the result.
-
rmdawn.extract_before(source: str, end: str) → str[source]¶ Extract all of the characters before start.
- Parameters
source – The input string from which to extract a substring.
end – The substring that marks the place where extraction will end.
return – A substring that is extracted from
source.
- Note
The
endstring is not include in the result.
-
rmdawn.extract_between(source: str, start: str, end: str) → str[source]¶ Extract all of the characters between start and end.
- Parameters
source – The input string from which to extract a substring.
start – The substring that marks the extraction starting place.
end – The substring that marks the place where extraction will end.
return – A substring that is extracted from
source.
- Note
The
startandendstrings are not include in the result.