author: Pieta Schofield output: word_document


PAGETITLE

require(pietalib)
require(RefManageR)
fileName <- "THISFILE"
projName <- "PROJDIR"
outStub <- ""

urlStub <- "http://www.compbio.dundee.ac.uk/user/pschofield/"
remDir <- "/homes/pschofield/"
locDir <- "/Users/pschofield/"
if(!file.exists(paste0(remDir,"Projects"))){
  proDir <- paste0(remDir,"Projects/")
  isLocal <- TRUE
}else{
  proDir <- paste0(locDir,"Projects/")
  isLocal <- FALSE
}

BibOptions(check.entries = F, style = "markdown", cite.style = "authoryear", 
           bib.style = "authoryear")
bib <- ReadBib("/Users/pschofield/git_tree/biblio/bioinf.bib",check=FALSE)

projDir <- paste0(proDir,projName,"/")
PrintBibliography(bib)
outFile <- buildAll(projName,fileName,outstub=outStub,outType="word_document")
if(!isLocal) outFile <- paste0(urlStub,"Projects/",projName,"/",outStub,"/",fileName,".html")
system(paste0("open ",outFile))


PietaSchofield/pietalib documentation built on May 8, 2019, 3:18 a.m.