[Rd] Slightly misleading help page: tools::add_datalist

2018-08-23 Thread Colin Gillespie
Hi, I was looking at the help page for add_datalist() and it states under Details: "R CMD build will call this function to add a data list to packages with 1MB or more of data." This is correct, however, what is omitted from the help page is that add_datalist() will *only* create the datalist fi

[Rd] R-admin typo

2018-09-19 Thread Colin Gillespie
Hi, Section 3.2 of the R-admin manual https://cran.ma.imperial.ac.uk/doc/manuals/r-release/R-admin.html#Testing-a-Windows-Installation could be improved. The particular sentence is The Rtools are not needed to run these tests. but more comprehensive analysis of errors will be given if diff is i

[Rd] Barplot & Boxplot: lim and horizontal

2019-05-17 Thread Colin Gillespie
Dear All, I've noticed an inconsistency between boxplot & barplot regarding the interaction between switching to a horizontal graph and the limits. par(mfrow = c(2, 2)) boxplot(1:10, xlim = c(0.1, 5), ylim = c(1, 10), log = "y", horizontal=FALSE, xlab = "X", ylab = "Y") axis(1) # Ch

Re: [Rd] HTTPS warning on developer.r-project.org

2019-05-24 Thread Colin Gillespie
On Wed, 22 May 2019 at 16:55, Simon Urbanek wrote: > > More to the point: the custom search function is currently broken anyway - it > just gives me 404. > > Should we just get rid of it? Does anyone actually use it? Are there logs available? Colin >If people want to use Google they can just

[Rd] Parallel number stream: clusterSetRNGStream

2019-06-07 Thread Colin Gillespie
Dear All, Is the following expected behaviour? set.seed(1) library(parallel) cl = makeCluster(5) clusterSetRNGStream(cl, iseed = NULL) parSapply(cl, 1:5, function(i) sample(1:10, 1)) # 7 4 2 10 10 clusterSetRNGStream(cl, iseed = NULL) # 7 4 2 10 10 parSapply(cl, 1:5, function(i) sample(1:10,

[Rd] The ByteCompile & LazyLoading fields

2017-07-03 Thread Colin Gillespie
Hi, In the DESCRIPTION file the ByteCompile and LazyLoading arguments appear to accept any value. >From the manual the field should be a "logical field". However, authors interpret this in a variety of ways: unique(tools::CRAN_package_db()$ByteCompile) # [1] NA "TRUE" "yes" "true" "Yes" "n

[Rd] Slow down using the compiler

2017-10-27 Thread Colin Gillespie
Dear All, In R 3.4.2 (Linux), the compiler seems to have regressed: $ R --vanilla g = function() { N = 1e7; ans = numeric(N) system.time({for (j in 1:N) ans[j] = 1}) } g() # user system elapsed # 4.272 0.000 4.272 g1 = compiler::cmpfun(g) g1() # user system elapsed # 4.232 0.004

[Rd] Documentation for floor, ceiling & trunc

2022-01-01 Thread Colin Gillespie
Hi, The documentation for floor, ceiling and trunc is slightly ambiguous. "floor takes ... and returns a numeric vector containing the largest integers ..." My initial thought was that floor() would return a vector of integers. Instead, it returns a vector of doubles, i.e c(1L, 2L) vs c(1, 2)

[Rd] Bad URLs in DESCRIPTION files

2025-04-05 Thread Colin Gillespie
Hi All, Just want to flag a few packages: MatrixLDA: https://cran.r-project.org/web/packages/MatrixLDA/index.html The URL is technically valid - ajmols...@github.io/ - but returns a 404. Almost certainly a typo. redistmetrics: https://cran.r-project.org/web/packages/redistmetrics/index.html Not

Re: [Rd] Bad URLs in DESCRIPTION files

2025-04-04 Thread Colin Gillespie
Yep. Kurt's message suggests that these were edge cases that missed the check. Thanks > > LluĂ­s > > On Thu, 3 Apr 2025 at 17:17, Colin Gillespie wrote: >> >> Hi All, >> >> Just want to flag a few packages: >> >> MatrixLDA: https://cran.r-proje