Skip to content

Commit

Permalink
add data loading for tests; update the example for m_t_graph()
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiyanM committed Nov 24, 2023
1 parent bfdbc6a commit 48edf59
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/make_the_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @source ggraph::ggraph
#'
#' @examples data(test_data)
#' make_the_graph(test_graphptw, test_network, 0.03, "Muscular System")
#' make_the_graph(test_graphptw, test_network, 0.03, "Muscular System","kk")
#'
#' @importFrom igraph graph_from_data_frame
#' @importFrom ggraph ggraph geom_edge_link geom_node_label scale_edge_alpha
Expand Down
Binary file modified data/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions example.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ data("test_data")
gDashboard(test_data_processed,test_cluster,test_annotations_processed,test_network,
dashboardtitle = "Test",
id_colname = c("GO_ID","KEGG_ID"),id_type = c("GO","KEGG"))


setwd("/Users/hazelma/Documents/GitHub/MolPad")
devtools::test()
devtools::check()
2 changes: 1 addition & 1 deletion man/make_the_graph.Rd

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

Binary file modified tests/testthat/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions tests/testthat/test-gAnnotation.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
data(test_data)
test_that("dataset 'test_annotations' exists", {
expect_true(exists('test_annotations'))
})
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-gClusters.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
data(test_data)
test_that("dataset 'test_data_processed' exists", {
expect_true(exists('test_data_processed'))
})
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-gNetwork.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
data(test_data)
test_that("data 'test_cluster' exists", {
expect_true(exists('test_cluster'))
})
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-pre_process.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
data(test_data)
test_that("dataset 'test_data' exists", {
expect_true(exists('test_data'))
})
Expand Down

0 comments on commit 48edf59

Please sign in to comment.