-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
useDynLib(Opticluster, .registration=TRUE) | ||
importFrom(Rcpp, evalCpp) | ||
export(OptiCluster) | ||
importFrom("utils", "read.table") | ||
export(opti_cluster) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
test_that("Clustering returns proper results", { | ||
expected_df <- readRDS(here::here("tests/extdata/df_test_file.RDS")) | ||
matrix <- readRDS(here::here("tests/extdata/matrix_data.RDS")) | ||
df <- Opticluster::OptiCluster(matrix, 0.2, 2) | ||
# Cluster object | ||
# Print objects | ||
# Summary | ||
# Cluster object makes abundance table + print/write statment | ||
# Create test for all the c++ classes | ||
# dotur | ||
expected_df <- readRDS(test_path("extdata","df_test_file.RDS")) | ||
Check notice Code scanning / lintr Commas should always have a space after. Note test
Commas should always have a space after.
|
||
matrix <- readRDS(test_path("extdata","matrix_data.RDS")) | ||
Check notice Code scanning / lintr Commas should always have a space after. Note test
Commas should always have a space after.
|
||
df <- Opticluster::opti_cluster(matrix, 0.2, 2) | ||
expect_equal(class(df), "data.frame") | ||
expect_equal(df, expected_df) | ||
}) | ||
|
||
}) | ||
Check notice Code scanning / lintr Missing terminal newline. Note test
Missing terminal newline.
|