View source: R/open.BibEntry.R
open.BibEntry | R Documentation |
Attempts to open a connection to an entry in a BibEntry object using fields such as ‘file’, ‘DOI’, ‘eprint’ + ‘eprinttype’, and ‘URL’.
## S3 method for class 'BibEntry'
open(
con,
entry = 1L,
open.field = c("file", "url", "eprint", "doi"),
viewer,
...
)
con |
BibEntry object to extract connections from. |
entry |
numeric index or character key of entry in |
open.field |
character vector of fields to use in |
viewer |
character string giving the name of the program to be used
as hypertext browser. It should be in the PATH, or a full path specified.
Alternatively, an R function to be called to invoke the browser. Defaults
to |
... |
not used. |
McLean, M. W. mathew.w.mclean@gmail.com
browseURL
## Not run:
if (requireNamespace("bibtex")) {
testbib <- ReadBib(system.file("REFERENCES.bib", package="bibtex"))
open(testbib)
testbib$file <- file.path(R.home("doc/manual"), "R-intro.pdf")
open(testbib)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.