Displaying 20 results from an estimated 200 matches similar to: "user supplied random number generators"
2024 Jul 15
1
Minor inconsistencies in tools:::funAPI()
Hi all,
I've noticed some peculiarities in the tools:::funAPI output that
complicate its programmatic use a bit.
- Is it for remapped symbol names (with Rf_ or the Fortran
underscore), or for unmapped names (without Rf_ or the underscore)?
I see that the functions marked in WRE are almost all (except
Rf_installChar and Rf_installTrChar) unmapped. This makes a lot of
sense because some
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
Hi Ivan
Can you please clarify what input files should be used with your
proposed function? I tried a few files in r-svn/src/include and one of
them gave me an error.
> getdecl("~/R/r-svn/src/include/R.h")
[1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent"
> getdecl("~/R/r-svn/src/include/Rdefines.h")
Error in regmatches(lines,
2002 Dec 17
1
rsprng doesn't install on Debian (woody) (PR#2378)
Full_Name: Emmanuel Charpentier
Version: 1.6.1
OS: Linux 2.4.20 / Debian Woody
Submission from: (NULL) (80.15.78.96)
rsprng depends on libraries available in the "genesis" package. However, even
when Genesis is installed, the installation of the source package fails for not
finding rsprng.h. It turns out that Debian installs it in a subdirectoru of
/usr/include, and that the rsprng
2007 May 18
1
Cannot install rsprng package (PR#9697)
<<insert bug report here>>
I cannot install the R package "rsprng" with the following error message:
> install.packages("rsprng")
trying URL 'http://www.stathy.com/cran/src/contrib/rsprng_0.3-4.tar.gz'
Content type 'application/x-tar' length 35934 bytes
opened URL
==================================================
downloaded 35Kb
* Installing
2012 Aug 08
1
random number generator with SNOW/ Parallel/ foreach
Dear All,
I have three classes of questions about generating random numbers with
different packages (windows xp 32bit R).
.
1. Suppose I would like to use package *foreach*, can I use current
Sys.time as a seed?
Although I can get the time up to1e-6 second precesion, the code below dose
not work well on a local machine with two cores. #################
library(foreach)
library(snow)
2010 Feb 18
2
sprng 2.0 header file for Rmpi
When I try to install Rmpi, it has a dependency rsprng which, as its
description says: Provides interface to SPRNG 2.0 APIs
I installed it on Mepis by installing the appropriate debs with
minimal drama. In the rpm world of Fedora, no such luxury.
Installing rsprng fails because:
checking sprng.h usability... no
checking sprng.h presence... no
checking for sprng.h... no
Cannot find sprng 2.0
2007 Jun 30
1
random numbers
Although this query was inspired by distributed random number
generation, one of the questions (#2 below) is a single-machine issue.
I call C++ code from R to generate simulated data. I'm doing this on a
cluster, and use rmpi and rsprng. While rsprng randomizes R-level
random numbers (e.g., from runif), it has no effect on the C code, which
is completely SPRNG and MPI ignorant.
Currently I
2011 Mar 14
1
Installing Rmpi on hpc
Hi,
I was trying to install the package Rmpi on a hpc cluster running SGE. The
command, and the sessionInfo() is as follows:
===========================================
> install.packages("Rmpi",dependencies=TRUE)
also installing the dependency ‘rsprng’
trying URL '
http://www.ibiblio.org/pub/languages/R/CRAN/src/contrib/rsprng_1.0.tar.gz'
Content type
2011 Dec 12
1
(no subject)
Hi all,
I'm trying to get the snow package with mpi working on my linux ubuntu 10.04 machine. When I tried to install it (see below) it already had problems with the dependencies.
R version 2.14.0 (2011-10-31)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You
2016 Aug 30
4
A bug in the R Mersenne Twister (RNG) code?
Whomever,
I recently sent the "bug report" below toR-core at r-project.org and have
just been asked to instead submit it to you.
Although I am basically not an R user, I have installed version 3.3.1
and am also the author of a statistics program written in Visual Basic
that contains a component which correctly implements the Mersenne
Twister (MT) algorithm. I believe that it is
2005 Jul 27
1
rpart.permutation, snow, rsprng binary files
Dear R-users,
Does anyone of you have binary files for the packages rpart.permutation,
snow and rsprng. I would like to use them in my classification tree. I
know they are still at the 0.x development stage, though.
Where can I get information on how to compile tar.gz files? I'm using
windows XP with R 2.1.0.
Thanks,
Jan
--------------------------------------------------------------------
2007 Jun 19
1
Rmpi and rsprng for Windows
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070619/1a8935fe/attachment.pl
2008 Sep 03
2
Does rattle depend on testing's ggobi?
Hello All,
I'm trying to install rattle from source on a AMD64 machine running etch. I
have two packages installed from the etch backport
(r-cran-rodbc and r-cran-rsprng) but all the rest installed from source. I'm
trying to install rattle, but
install.packages("rattle", dependencies=TRUE)
Tries to install rggobi, which complains about the version of libggobi. Does
2005 Jun 08
6
Random seed problem in MCMC coupling of chains
Hello!
I am performing coupling of chains in MCMC and I need the same value
of seed for two chains. I will show demo of what I want:
R code, which might show my example is:
niter <- 3
nchain <- 2
tmpSeed <- 123
for (i in 1:niter) { # iterations
for (j in 1:nchain) { # chains
set.seed(tmpSeed)
a <- runif(1)
cat("iter:", i, "chain:", j,
2009 Nov 16
2
(Parallel) Random number seed question...
Hi All,
I have k identical parallel pieces of code running, each using n.rand
random numbers.? I would like to use the same RNG (for now), and set
the seeds so that I can guarantee that there are no overlaps in the
random numbers sampled by the k pieces of code.? Another side goal is
to have reproducibility of my results.? In?the past I have used C with
SPRNG for this task, but I'm hoping
2003 Dec 01
2
help with random numbers and Rmpi
Dear People,
This may not be the right place to ask a question about Rmpi, but I don't
know of a better one.
I am trying to get a simple program working using Rmpi with the model of 1
R master and n C slaves. What I am trying to do is have each of the C
slaves generate a random number from U[0,1], and then have the master
collect all n numbers as a vector and output it. However even doing
2016 Sep 01
2
A bug in the R Mersenne Twister (RNG) code?
On 08/30/2016 06:29 PM, Duncan Murdoch wrote:
> I don't see evidence of a bug. There have been several versions of the
> MT; we may be using a different version than you are. Ours is the
> 1999/10/28 version; the web page you cite uses one from 2002.
>
> Perhaps the newer version fixes some problems, and then it would be
> worth considering a change. But changing the
1999 May 04
1
rnorm
Brian
I've been playing a bit with the Wichmann-Hill RNG. I would prefer to have
normally distributed random numbers and I think I have things generally worked
out to use Wichmann-Hill and then Box-Muller. In the process, I was looking at
R's rnorm.c, but could not figure out what transformation is used in R to
convert uniform rv's to normal rv's. Do you know? It looks like there
2011 Jan 07
1
Trouble with installing Rmpi package
Hi,
I am having a problem with installing Rmpi package on redhat linux machine.
The R I am using is version 2.10.1. Here’s what happens.
> install.packages( ''Rmpi'' )
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
trying URL ''http://cran.cnr.Berkeley.edu/src/contrib/Rmpi_0.5-9.tar.gz''
Content type
2010 Jul 06
2
Rcmdr installation under Unbuntu installatiion errors
Unbuntu 10.04
R 2.10
I am trying to install Rcmdr and receive the following messages:
The downloaded packages are in
?/tmp/RtmpzhjDZG/downloaded_packages?
Warning messages:
1: In install.packages("Rcmdr", dependencies = TRUE) :
installation of package 'Rmpi' had non-zero exit status
2: In install.packages("Rcmdr", dependencies = TRUE) :
installation of package