Skip to content

Commit

Permalink
prepare for CRAN submission to fix note:
Browse files Browse the repository at this point in the history
checking HTML version of manual ... [10s] NOTE
Found the following HTML validation problems:
estimate.probability.html:33:1 (estimate.probability.Rd:25): Warning: trimming empty <li>
estimate.probability.html:35:1 (estimate.probability.Rd:26): Warning: trimming empty <li>
  • Loading branch information
HajkD committed Nov 12, 2024
1 parent 59f4088 commit 1cb8e2b
Show file tree
Hide file tree
Showing 80 changed files with 264 additions and 267 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: philentropy
Type: Package
Title: Similarity and Distance Quantification Between Probability Functions
Version: 0.9.0.9000
Date: 2023-12-02
Version: 0.9.0
Date: 2024-11-12
Authors@R: c(person("Hajk-Georg", "Drost",
role = c("aut", "cre"),
email = "[email protected]",
Expand All @@ -28,4 +28,4 @@ Suggests:
microbenchmark
VignetteBuilder: knitr
BugReports: https://github.com/drostlab/philentropy/issues
RoxygenNote: 7.2.1
RoxygenNote: 7.3.1
6 changes: 0 additions & 6 deletions R/est.prob.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@
#' @author Hajk-Georg Drost
#' @return a numeric probability vector.
#' @examples
#'
#' # generate a count vector
#' x <- runif(100)
#'
#' # generate a probability vector from corresponding counts
#' # method = "empirical"
#' x.prob <- estimate.probability(x, method = "empirical")
#'
#' @export


estimate.probability <- function(x, method = "empirical"){

if(!is.element(method,c("empirical")))
Expand All @@ -35,5 +30,4 @@ estimate.probability <- function(x, method = "empirical"){
# fastest implementation for relative frequency
return(x/sum(x))
}

}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the people who share it with me.

### Installation
```r
# install philentropy version 0.8.0 from CRAN
# install philentropy version 0.9.0 from CRAN
install.packages("philentropy")
```

Expand Down
6 changes: 3 additions & 3 deletions docs/404.html

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

6 changes: 3 additions & 3 deletions docs/LICENSE-text.html

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

10 changes: 5 additions & 5 deletions docs/articles/Distances.html

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

6 changes: 3 additions & 3 deletions docs/articles/Information_Theory.html

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

Loading

0 comments on commit 1cb8e2b

Please sign in to comment.