R/runSrc.R

Defines functions runSrc

Documented in runSrc

#' 1.1 List 
#' 
#' Returns a row with the latest price for a given stock.
#' 
#' @param text source code of R. Required.
#' @return ggplot object.
#' @export
#' 

runSrc <- function(text= "a <- 1+1", keep.source = TRUE){
  library(ggplot2)
  library(jsonlite)
  library(RJSONIO)
  library(readr)
  writeLines(text, con="input.R")
  result <- source('input.R', local = TRUE)
  jsonoutput <- toJSON(result)
}
kruny1001/rRemoteSDSU documentation built on May 20, 2019, 6:42 p.m.