Learn R Programming

microplot (version 1.0-45)

as.orgfile: Place a filename or filepath in the format used by org-mode

Description

Place a filename or filepath in the format used by org-mode, by surrounding it with "[[" and "]]".

Usage

as.orgfile(object, wd = getwd(), ...)

Arguments

object

Vector of character strings containing filenames.

wd

The directory in which the files reside. The default is the current working directory that R is using.

Ignored.

Value

A character vector containing the input strings surrounded by "[[" and "]]".

See Also

microplot

Examples

Run this code
# NOT RUN {
as.orgfile("abcd.png")
as.orgfile("abcd.png", wd=".")
as.orgfile(c("abcd.png", "efgh.png"))

## For an example in context, please see the package example:
##    system.file(package="microplot", "examples/irisOrgHtml.org")
## Copy file irisOrgHtml.org to a directory in which you have write privileges,
## open it in emacs, and enter
## C-c C-e b           on Macintosh
## C-c C-e ho          on Windows
## C-c C-e <something> on linux

# }

Run the code above in your browser using DataLab