R/httpget_doc.R

Defines functions httpget_doc

httpget_doc <- function(requri){
  #set cache value as for libraries
  res$setcache("lib");

  #find doc dir
  docdir <- Sys.getenv("R_DOC_DIR", "/usr/share/R/doc")
  path <- file.path(docdir, paste(requri, collapse="/"))
  assert_subdir(path, docdir)
  httpget_file(path)
}
jeroen/opencpu documentation built on Jan. 14, 2019, 2:10 a.m.