Skip to content

Commit

Permalink
CRAN corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdnbradford committed Sep 16, 2024
1 parent a356e8f commit 9f433d9
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 21 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
^pkgdown$
^README\.Rmd$
^cran-comments\.md$
^CRAN-SUBMISSION$
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ docs/
docs

/.quarto/

# CRAN
CRAN-SUBMISSION
6 changes: 5 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ Title: Read Markdown Tables into Tibbles
Version: 0.1.1
Authors@R:
person("Jordan", "Bradford", , "[email protected]", role = c("aut", "cre", "cph"))
Description: Read markdown tables from a string, file, or URL into tibbles.
Description: Functions for reading raw markdown tables from a
string, file, or URL into tibbles. It includes options to
warn users about potential issues with the markdown table
format, ensuring robust data handling even if the table has
minor formatting errors.
Imports:
cli,
httr2,
Expand Down
8 changes: 4 additions & 4 deletions R/read_md_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
#' leading or trailing pipes, warnings will be raised
#' but the data will be read correctly.
#' [`readr::read_delim`] will provide its own warnings
#' if there are potential issue.
#' if there are potential issues.
#'
#' @param file Either a path to a file, a connection, or
#' literal data (either a single string or a raw vector).
#' Files starting with `http://`, `https://`,
#' `ftp://`, or `ftps://` will be automatically downloaded.
#' Files starting with `http://`, `https://`, `ftp://`,
#' or `ftps://` will be automatically downloaded.
#'
#' @param warn Boolean. Should `read_md_table` warn
#' about possible issues with the passed `file`?
Expand All @@ -36,7 +36,7 @@
#' # Read from a string
#' read_md_table("| H1 | H2 | \n|-----|-----|\n| R1C1 | R1C2 |\n| R2C1 | R2C2 |")
#'
#' \dontrun{
#' \donttest{
#' # Read from a URL
#' read_md_table(
#' "https://raw.githubusercontent.com/jrdnbradford/readMDTable/main/inst/extdata/iris.md"
Expand Down
8 changes: 4 additions & 4 deletions R/read_md_table_example.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#' @title Get Path to readMDTable Examples
#'
#' @details readMDTable comes bundled with a number of sample files
#' in `inst/extdata` directory. This function makes them easy to access.
#' @details readMDTable comes with a number of well-known
#' datasets as example markdown tables in the `inst/extdata`
#' directory. `read_md_table_example` will list the file
#' names or return the path of a specified file.
#'
#' @param file Name of file. If `NULL`, the example files will be listed.
#'
Expand All @@ -18,8 +20,6 @@
#' # Read in an example file
#' mtcars_path <- read_md_table_example("mtcars.md")
#' read_md_table(mtcars_path)
#' @references This function and setup follows [`readr::readr_example`].
#'
#' @export
read_md_table_example <- function(file = NULL) {
if (is.null(file)) {
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<!-- badges: start -->

[![R-CMD-check](https://github.com/jrdnbradford/readMDTable/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrdnbradford/readMDTable/actions/workflows/R-CMD-check.yaml)
[![CRAN
status](https://www.r-pkg.org/badges/version/readMDTable)](https://CRAN.R-project.org/package=readMDTable)
[![Dev
status](https://img.shields.io/github/r-package/v/jrdnbradford/readMDTable/main?label=Dev%20Version&logo=github&labelColor=3e474f&logoColor=959da5)](https://github.com/jrdnbradford/readMDTable)
[![GitHub
Expand Down
2 changes: 1 addition & 1 deletion man/readMDTable-package.Rd

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

8 changes: 4 additions & 4 deletions man/read_md_table.Rd

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

9 changes: 4 additions & 5 deletions man/read_md_table_example.Rd

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

0 comments on commit 9f433d9

Please sign in to comment.