forked from CIP-RIU/brapi
-
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.
Merge branch 'master' of https://github.com/CIP-RIU/brapi
- Loading branch information
Showing
86 changed files
with
587 additions
and
2,398 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: brapi | ||
Title: Client to Access Breeding Databases Using BrAPI | ||
Version: 0.9.2 | ||
Version: 0.9.3 | ||
Authors@R: c( | ||
person("Reinhard", "Simon", email = "[email protected]", role = c("aut", "cre")), | ||
person("Maikel", "Verouden", role = c("aut", "ctb") , email = "[email protected]"), | ||
|
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,18 @@ | ||
context("sp calls") | ||
|
||
con <- ba_db()$sweetpotatobase | ||
|
||
test_that("Calls are present", { | ||
|
||
res <- ba_calls(con = con, datatype = "csv", pageSize = 100) | ||
expect_that(nrow(res) >= 48, is_true()) | ||
|
||
}) | ||
|
||
test_that("Calls output formats work", { | ||
|
||
res <- ba_calls(con = con, datatype = "csv", rclass = "data.frame") | ||
expect_that("data.frame" %in% class(res), is_true()) | ||
|
||
}) | ||
|
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,4 +1,4 @@ | ||
context("crops") | ||
context("sp crops") | ||
|
||
con <- ba_db()$sweetpotatobase | ||
|
||
|
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,17 @@ | ||
context("sp genomemaps") | ||
|
||
con <- ba_db()$sweetpotatobase | ||
|
||
test_that("Genomemaps are present", { | ||
|
||
res <- ba_genomemaps(con = con) | ||
expect_that(nrow(res) == 1, is_true()) | ||
|
||
}) | ||
|
||
test_that("Vector output is transformed", { | ||
|
||
res <- ba_genomemaps(con = con, rclass = "vector") | ||
expect_that("tbl_df" %in% class(res), is_true()) | ||
|
||
}) |
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,24 @@ | ||
context("sp germplasm_details") | ||
|
||
con <- ba_db()$sweetpotatobase | ||
|
||
test_that("Germplasm_details results are present", { | ||
|
||
res <- ba_germplasm_details(con = con, germplasmDbId = "103412") | ||
expect_that(nrow(res) >= 1, is_true()) | ||
|
||
}) | ||
|
||
|
||
test_that("Out formats work", { | ||
|
||
res <- ba_germplasm_details(con = con, germplasmDbId = "1", rclass = "json") | ||
expect_that("json" %in% class(res), is_true()) | ||
|
||
res <- ba_germplasm_details(con = con, germplasmDbId = "1", rclass = "list") | ||
expect_that("list" %in% class(res), is_true()) | ||
|
||
res <- ba_germplasm_details(con = con, germplasmDbId = "1", rclass = "data.frame") | ||
expect_that("data.frame" %in% class(res), is_true()) | ||
|
||
}) |
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,31 @@ | ||
context("sp germplasm_search") | ||
|
||
con <- ba_db()$sweetpotatobase | ||
|
||
test_that("Germplasm_search results are present", { | ||
|
||
res <- ba_germplasm_search(con = con) | ||
expect_that(nrow(res) >= 1, is_true()) | ||
|
||
}) | ||
|
||
test_that("out formats work", { | ||
|
||
res <- ba_germplasm_search(con = con, rclass = "json") | ||
expect_that("json" %in% class(res), is_true()) | ||
|
||
res <- ba_germplasm_search(con = con, rclass = "list") | ||
expect_that("list" %in% class(res), is_true()) | ||
|
||
res <- ba_germplasm_search(con = con, rclass = "data.frame") | ||
expect_that("data.frame" %in% class(res), is_true()) | ||
|
||
}) | ||
|
||
con <- ba_db()$sweetpotatobase | ||
test_that("Germplasm_search results are present using POST", { | ||
|
||
res <- ba_germplasm_search(con = con, method = 'POST') | ||
expect_that(nrow(res) >= 1, is_true()) | ||
|
||
}) |
4 changes: 2 additions & 2 deletions
4
tests/testthat/test_locations.R → tests/testthat/test_sp_locations.R
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
2 changes: 1 addition & 1 deletion
2
tests/testthat/test_programs.R → tests/testthat/test_sp_programs.R
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,4 +1,4 @@ | ||
context("programs") | ||
context("sp programs") | ||
|
||
con <- ba_db()$sweetpotatobase | ||
|
||
|
Oops, something went wrong.