Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
^\.github$
^cran-comments\.md$
^.vscode$
^tests/failures$
^Dockerfile$
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Package: primes
Type: Package
Title: Fast Functions for Prime Numbers
Version: 1.6.0
Date: 2023-12-30
Version: 1.6.1
Date: 2025-01-28
Authors@R: c(
person("Os", "Keyes", email = "ironholds@gmail.com", role = c("aut", "cre")),
person("Paul", "Egeler", email = "paulegeler@gmail.com", role = c("aut"), comment = c(ORCID = "0000-0001-6948-9498"))
person("Os", "Keyes", email = "ironholds@gmail.com", role = c("aut")),
person("Paul", "Egeler", email = "paulegeler@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-6948-9498"))
)
Description: Fast functions for dealing with prime numbers, such as testing
whether a number is prime and generating a sequence prime numbers.
Expand Down
2 changes: 1 addition & 1 deletion R/phi.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ phi_alt <- function(n) {
# See Ironholds/primes#14 for details.
vapply(
prime_factors(n),
\(x) {
function(x) {
runs <- rle(x)
as.integer(prod(runs$values ** (runs$lengths - 1) * (runs$values - 1)))
},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Fast Functions for Prime Numbers in R
[![Number of Downloads](https://cranlogs.r-pkg.org/badges/grand-total/primes)](https://cran.r-project.org/package=primes)

**Authors**: Os Keyes and Paul Egeler
**License**: [MIT](https://opensource.org/license/mit/)
**License**: [MIT](https://opensource.org/license/mit)

## Description

Expand Down
9 changes: 9 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## Version 1.6.1

The failure observed in _tests/failures/testthat.Rout_ was inadvertently carried
over from debugging version 1.5.1. The files have been purged and the path has
been added to _.Rbuildignore_.

We have also confirmed again that no undefined behavior is detected by running
all tests using the `rocker/r-devel-ubsan-clang` on the latest build.

## Version 1.5.1

### Purpose
Expand Down