R/blocking_count_rows.R

#' Takes a matrix. Returns number of elements
#'
#' @export
#' @param matrix your matrix. Required.
#' 

blocking_count_rows <- function(json, time){
  library(jsonlite)
  matrix <- fromJSON(json)
  Sys.sleep(time)
  nrow(matrix)
}
SvenLehmann/OpenCpuRDemo documentation built on May 9, 2019, 3:23 p.m.