Displaying 4 results from an estimated 4 matches for "csgillespie".
2016 May 13
2
Libro: Efficient R programming
Por si os interesa....
https://csgillespie.github.io/efficientR/
Un saludo,
Miguel.
________________________________
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por...
2017 Jul 03
1
The ByteCompile & LazyLoading fields
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" "no"
#
2019 Jun 07
1
Parallel number stream: clusterSetRNGStream
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, 1))
stopCluster(cl)
The documentation could be read either way, e.g.
* iseed: An integer to be
2017 Oct 27
1
Slow down using the compiler
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 4.235
Running the above code in Windows 3.3.1, g() takes the same time, but g1()
takes around 0.5