-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
117 ensure fresh install works even if ifadv missing (#121)
* Remove ifadv from dependencies It is not an official CRAN dependency * Hot fix the problem with ifadv * Hot fix the problem with ifadv without using devtools * Improvements in get_ifadv But still causing odd problems: tests go fine on testing, but fail on checking * Greatly simplify the download process For some reason, native R data files (.rda) are less comfortable for R than the good-old csv. I pushed a csv copy of the rda file to https://github.com/elpaco-escience/ifadv/tree/csv, and that's the one we are using now.
- Loading branch information
Showing
8 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' Get IFADV data | ||
#' | ||
#' IFA Dialog Video corpus data | ||
#' Available in the public repository: | ||
#' https://github.com/elpaco-escience/ifadv | ||
#' | ||
#' This function requires an internet connection. | ||
#' | ||
#' @param source (default = "https://raw.githubusercontent.com/elpaco-escience/ifadv/csv/data/ifadv.csv") | ||
#' | ||
#' @return A data frame containing the IFADV dataset | ||
#' @export | ||
#' | ||
get_ifadv <- function(source="https://raw.githubusercontent.com/elpaco-escience/ifadv/csv/data/ifadv.csv") { | ||
return(utils::read.csv(source)) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
## set up the test environment | ||
data <- ifadv::ifadv | ||
## Load the test data | ||
testdata <- get_ifadv() | ||
|
||
test_that("summary reports are accurate", { | ||
expect_snapshot( | ||
report_stats( | ||
data | ||
testdata | ||
) | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters