SCM

SCM Repository

[rqda] Diff of /pkg/rjpod/R/pdfXMP.R
ViewVC logotype

Diff of /pkg/rjpod/R/pdfXMP.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 490, Tue Dec 11 12:06:20 2012 UTC revision 491, Wed Dec 12 07:05:18 2012 UTC
# Line 1  Line 1 
1  pdfXMP <- function(file, bibtex=TRUE){  pdfXMP <- function(file, jabrefOnly=TRUE){
2      commonjpod <- rJava:::.jnew("common/CommonRJPod")      commonjpod <- rJava:::.jnew("common/CommonRJPod")
3      commonjpod$open(file)      commonjpod$open(file)
4      doc <- commonjpod$getDoc()      doc <- commonjpod$getDoc()
# Line 14  Line 14 
14          val <- gsub("^(\\()|(\\)$)", "", val)          val <- gsub("^(\\()|(\\)$)", "", val)
15          sprintf("%s = %s", key, val)          sprintf("%s = %s", key, val)
16      })      })
17      if (bibtex) {      if (jabrefOnly) {
18          ans <- ans[grepl("^bibtex",ans)]          ans <- ans[grepl("^bibtex",ans)]
19      }      }
20      ans      ans

Legend:
Removed from v.490  
changed lines
  Added in v.491

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge