Skip to content

Commit

Permalink
get_design_code
Browse files Browse the repository at this point in the history
  • Loading branch information
lilymedina committed May 24, 2018
1 parent 1edbe47 commit 98fce90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
#' @export
#'
get_design_code <- function(design){
attr(design, "code")
out <- capture.output( cat(attr(design, "code"),sep = "\n"))
out <- gsub("\\{|\\}", "", out)
out <- gsub("\\\"#|\\\"\\}", "
#", out)
cat(out, sep = "\n")
}

#' @export
Expand Down

0 comments on commit 98fce90

Please sign in to comment.