Skip to content

Commit ca889b0

Browse files
committed
Prepare for initial release.
1 parent 48827ae commit ca889b0

8 files changed

Lines changed: 57 additions & 3 deletions

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
^pkgdown$
1212
^[.]?air[.]toml$
1313
^\.vscode$
14+
^cran-comments\.md$

NEWS.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1-
# inphr (development version)
1+
# inphr 0.0.1
22

3-
* Initial CRAN submission.
3+
This is a new submission to CRAN.
4+
5+
## Goals
6+
7+
The [{inphr}](https://tdaverse.github.io/inphr/) package is intended to be a
8+
package for making inference on samples of persistence homology data. It is
9+
part of the *TDAverse* suite of packages, which are designed to provide a
10+
collection of packages for enabling machine learning and data science tasks
11+
using persistent homology.
12+
13+
## Current features
14+
15+
The package currently exposes two main functions which test if two samples of PH data have been generated from the same distribution:
16+
17+
- [`two_sample_diagram_test()`](https://tdaverse.github.io/inphr/reference/two_sample_diagram_test.html) works in the space of diagrams, using test statistics based on inter-point distances only.
18+
- [`two_sample_functional_test()`](https://tdaverse.github.io/inphr/reference/two_sample_functional_test.html) works in a functional space (one of Betti, Euler characteristic, normalized life, silhouette or entropy) and uses interval-wise testing (providing strong control of familywise error rate) to output on which portions of the scale sequence does the difference occur.
19+
20+
## Dependencies
21+
22+
Messages, warnings and errors are relayed to the user using the
23+
[{rlang}](https://rlang.r-lib.org) package and the
24+
[{cli}](https://cli.r-lib.org) package which are both licensed under the MIT
25+
license and with no dependency trail.
26+
27+
Inference in the space of diagrams is performed thanks to the combination of
28+
[{phutil}](https://cran.r-project.org/package=phutil) which computes distances between diagrams in an efficient manner and
29+
[{flipr}](https://cran.r-project.org/package=flipr) which powers the permutation schemes and test statistics based on
30+
inter-point distances.
31+
32+
Inference in functional spaces is performed thanks to the combination of
33+
[{TDAvec}](https://cran.r-project.org/package=TDAvec) which provides the suitable PH vectorization and [{fdatest}](https://cran.r-project.org/package=fdatest) which
34+
powers the interval-wise testing procedure for functional data.

R/two-sample-functional-test.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#'
4747
#' @export
4848
#' @examples
49-
#' out <- two_sample_functional_test(trefoils1, archspirals, B = 100L, scale_size = 50L)
49+
#' out <- two_sample_functional_test(trefoils1, archspirals, B = 10L, scale_size = 20L)
5050
#' plot(out$iwt, xrange = range(out$scale_seq))
5151
#' matplot(
5252
#' out$scale_seq[-1],

README.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ knitr::opts_chunk$set(
1818
<!-- badges: start -->
1919
[![Codecov test coverage](https://codecov.io/gh/tdaverse/inphr/graph/badge.svg)](https://app.codecov.io/gh/tdaverse/inphr)
2020
[![R-CMD-check](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml)
21+
[![CRAN status](https://www.r-pkg.org/badges/version/inphr)](https://CRAN.R-project.org/package=inphr)
2122
<!-- badges: end -->
2223

2324
The goal of [{inphr}](https://tdaverse.github.io/inphr/) is to provide a set of

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
[![Codecov test
99
coverage](https://codecov.io/gh/tdaverse/inphr/graph/badge.svg)](https://app.codecov.io/gh/tdaverse/inphr)
1010
[![R-CMD-check](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml)
11+
[![CRAN
12+
status](https://www.r-pkg.org/badges/version/inphr)](https://CRAN.R-project.org/package=inphr)
1113
<!-- badges: end -->
1214

1315
The goal of [{inphr}](https://tdaverse.github.io/inphr/) is to provide a

cran-comments.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Test environments
2+
3+
* local macOS R installation, R 4.5.1
4+
* continuous integration via GH actions:
5+
* macOS latest release
6+
* windows latest release
7+
* ubuntu 24.04.2 LTS and devel and oldrel-1
8+
* [win-builder](https://win-builder.r-project.org/) (release and devel)
9+
* [macOS-builder](https://mac.r-project.org/macbuilder/submit.html)
10+
* [R-hub](https://r-hub.github.io/rhub/): All platforms expect
11+
* `gcc14` for which package {pcaPP} fails to install;
12+
* `intel` which fails to install because it cannot find `libquadmath.so` required by {TDAvec} dependency;
13+
* `mkl` which fails to install because it cannot find symbol `mkl_lapack_dcombssq` required by {TDAvec} dependency.
14+
15+
## R CMD check results
16+
17+
0 errors | 0 warnings | 1 note
18+
19+
* This is a new release.
1 Byte
Loading
160 Bytes
Loading

0 commit comments

Comments
 (0)