R/rprof-write.R

Defines functions write_rprof

Documented in write_rprof

#' @rdname read_rprof
#' @export
write_rprof <- function(x, path) {
  rprof <- ds_to_rprof(x)
  writeLines(unlist(rprof, use.names = FALSE), path)
  invisible(x)
}

Try the profile package in your browser

Any scripts or data that you put into this service are public.

profile documentation built on Aug. 22, 2022, 9:10 a.m.