Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit 3e2e7a0

Browse files
committed
Fixing the build, changed imports to not require proxy for metric check
1 parent 76df485 commit 3e2e7a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+6721
-11
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* linguist-vendored
2+
*.R linguist-vendored=false
3+
*.cpp linguist-vendored=false
4+
*.h linguist-vendored=false

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ rsconnect/
4545
## Work
4646
work/
4747
ignore/
48+
.idea

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: Mapper
22
Type: Package
33
Title: Topological Data Analysis using Mapper
44
Version: 0.8.0
5-
Date: 2018-10-29
5+
Date: 2018-11-29
66
Authors@R: c(person("Matt", "Piekenbrock", email = "[email protected]", role = c("aut", "cre", "cph")),
77
person("Gurjeet","Singh", role = c("ctb","cph")))
88
Author: Matt Piekenbrock [aut, cre, ctb],

NAMESPACE

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export(simplex_tree)
2020
export(union_find)
2121
import(Rcpp)
2222
import(methods)
23-
import(proxy)
2423
importFrom(Rcpp,Module)
2524
importFrom(Rcpp,cpp_object_initializer)
2625
importFrom(Rcpp,evalCpp)

R/mapper.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#'
3434
#' @seealso \code{\link[stats]{hclust}} \code{\link[Mapper]{cutoff_first_bin}}
3535
#' @useDynLib Mapper
36-
#' @import methods proxy
36+
#' @import methods
3737
#' @importFrom Rcpp sourceCpp
3838
#'
3939
#' @author Matt Piekenbrock, \email{matt.piekenbrock@@gmail.com}

R/mapperRef.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ MapperRef$set("active", "measure",
116116
function(value){
117117
if (missing(value)){ private$.measure }
118118
else {
119-
available_measures <- toupper(proxy::pr_DB$get_entry_names())
120-
stopifnot(is.character(value))
121-
stopifnot(toupper(value) %in% available_measures)
119+
has_proxy <- requireNamespace("proxy", quietly = TRUE)
120+
available_measures <- if (has_proxy) proxy::pr_DB$get_entry_names() else c("euclidean", "maximum", "manhattan", "canberra", "binary", "minkowski")
121+
stopifnot(is.character(value), toupper(value) %in% toupper(available_measures))
122+
dist_f <- ifelse(has_proxy, parallelDist::parallelDist, stats::dist)
122123
private$.measure <- value
123124
}
124125
}

docs/docs/LICENSE-text.html

+335
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)