Skip to content

Commit

Permalink
add roxygen documentation, export function
Browse files Browse the repository at this point in the history
  • Loading branch information
PietrH committed Aug 1, 2023
1 parent b1c1444 commit a972478
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
^\.github$
^LICENSE\.md$
^.*\.Rproj$
^\.Rproj\.user$
8 changes: 8 additions & 0 deletions R/csv_to_markdown_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ format_link <- function(label, url) {
sprintf("[%s](%s)", label, url)
}

#' Convert a csv file to a markdown table
#'
#' Also convert two columns to markdown links
#'
#' @param csv_path Character. Path to csv file.
#'
#' @export
#'
csv_to_markdown_table <- function(csv_path) {
readr::read_csv(csv_path, show_col_types = FALSE) %>%
dplyr::mutate(
Expand Down
14 changes: 14 additions & 0 deletions man/csv_to_markdown_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a972478

Please sign in to comment.