#' @importFrom magrittr %>%
NULL
#' A modified print function
#'
#' This function print all rows of a data frame
#' @param df a data frame
#' @keywords print rows
#' @export
#' @examples
#' print_all(mtcars)
print_all <- function(df){
if(inherits(df, "tbl_df")){
df %>% print(n=nrow(df))
}else{
df %>% print()
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.