Skip to content

Commit

Permalink
Merge a369d0e into 7fa5954
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore committed Jan 3, 2019
2 parents 7fa5954 + a369d0e commit bddf128
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 54 deletions.
11 changes: 5 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
Package: tor
Title: Read Multiple Files With Of Any Format From a Directory
Into a List
Version: 0.0.0.9000
Version: 1.0.0
Authors@R:
person(given = "Mauro",
family = "Lepore",
role = c("aut", "cre"),
email = "maurolepore@gmail.com")
Description: Read multiple files of any format from a directory
into a list, using a reader function of your choice. tor is designed
to be simple, flexible, and to fit well in data-science workflows with
the tidyverse. It is focused, flexible, small, and has few
dependencies.
Description: The goal of tor (to-R) is to help you to read
multiple files from a single directory into R, and to do so as
quickly, flexibly, and simply as possible. It makes a frequent,
challenging task less painful.
License: GPL-3
URL: https://github.com/maurolepore/tor
BugReports: https://github.com/maurolepore/tor/issues
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# tor 0.0.0.9000 unreleased
# tor 1.0.0

* Initial release.
5 changes: 4 additions & 1 deletion R/tor_example.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' Easily access example data.
#'
#' @author Copied from `readr::readr_example()`, by Jim Hester and colleagues.
#' @author Copied from `readr_example()` from the __readr__ package, by Jim
#' Hester and colleagues.
#'
#' @param path Length-1 character vector. A path to an available directory.
#'
Expand All @@ -9,7 +10,9 @@
#'
#' @examples
#' tor_example()
#'
#' tor_example("csv")
#'
#' dir(tor_example("csv"))
tor_example <- function(path = NULL) {
if (is.null(path)) {
Expand Down
2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

2 changes: 1 addition & 1 deletion docs/authors.html

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

15 changes: 7 additions & 8 deletions docs/index.html

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

8 changes: 4 additions & 4 deletions docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/reference/format_path.html

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

2 changes: 1 addition & 1 deletion docs/reference/index.html

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

2 changes: 1 addition & 1 deletion docs/reference/list_any.html

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

2 changes: 1 addition & 1 deletion docs/reference/list_rds.html

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

20 changes: 9 additions & 11 deletions docs/reference/tor-package.html

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

9 changes: 6 additions & 3 deletions docs/reference/tor_example.html

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

9 changes: 4 additions & 5 deletions man/tor-package.Rd

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

5 changes: 4 additions & 1 deletion man/tor_example.Rd

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

8 changes: 0 additions & 8 deletions tests/testthat/test-list_rds.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ test_that("list_csv is sensitive to `regexp`, `invert, and `ignore.case`", {

context("list_tsv")

test_that("list_tsv lists .tsv files", {
skip_if_not_installed("readr")

readr <- readr::read_tsv(fs::dir_ls(tor_example("tsv"))[[1]])
tor <- list_tsv(tor_example("tsv"))[[1]]
expect_equivalent(readr, tor)
})

test_that("list_tsv defaults to read from working directory", {
expect_named(list_tsv(), "tsv")
})
Expand Down

0 comments on commit bddf128

Please sign in to comment.