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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/as.orgfile.R

Description

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

Usage

1
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 "]]".

Author(s)

Nooreen Dabbish <nerd@temple.edu> and Richard M. Heiberger <rmh@temple.edu>

See Also

microplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

microplot documentation built on Nov. 29, 2020, 1:07 a.m.