Displaying 20 results from an estimated 300 matches similar to: "Problem with package SNOW on MacOS X 10.5.5"
2008 Dec 31
1
Problem with package SNOW on MacOS X 10.5.5
Hello All,
I can run the "lower level" functions OK, but many of the higher level
(eg. parSApply) functions are generating errors.
When running the example (from the snow help docs) for parApply on
MacOSX 10.5.5, I get the
following error:
cl <- makeSOCKcluster(c("localhost","localhost"))
sum(parApply(cl, matrix(1:100,10), 1, sum))
Error in
2011 Jun 12
1
snow package
Hi
I try parallelising some code using the snow package and the following lines:
cl <- makeSOCKcluster(8)
pfunc <- function (x) (if(x <= (-th)) 1 else 0) ###correlation coefficient
clusterExport(cl,c("pfunc","th"))
cor.c.f <- parApply(cl,tms,c(1,2),FUN=pfunc)
The parApply results in the error message:
> cor.c.f <- parApply(cl,tms,c(1,2),FUN=pfunc)
Error
2012 Nov 20
1
parApply computing
I'm using /parApply/() function in "snow" package for parallel computing
(boostrapping repeating calculation), as the follows:
MyBoostrapping <- function( i ){
.....
}
cl <- makeCluster( ncluster, type = "SOCK")
i.circle <- as.matrix( 1:128, , 1)
parApply( cl, i.circle, 1, FUN = MyBoostrapping)
It works.
However, I want to set more than one arguments to
2012 Mar 17
1
parApply vs parCapply
I've started to use the parallel package and it works very well speeding
things up. Thank you for making this easy to do.
Should I have expected that parCapply would return a vector
when parApply returns a matrix?
library(parallel)
x <- matrix(rnorm(8), nc = 2)
apply(x, 2, function(y) y)
[,1] [,2]
[1,] -0.9649685 0.91339851
[2,] -1.4313140 0.13457671
[3,] 1.0499248
2011 Sep 24
1
Can't reliably use RefClass methods in Snowfall
Greetings,
I am trying to use Reference Class methods in Snowfall, using R 2.12.1
on Ubuntu Natty. Using then directly seems to work (stanza 2 below),
but using them indirectly does not (stanza 3 below). I get an "attempt
to apply non-function" error.
In addition to exporting the instance of the object I created to the
Snowfall slaves, I also made several attempts to export the
2009 Jan 02
0
Parallel computing with snow
I've been using parApply() in snow package for parallel computing with
the following lines in R 2.8.1:
library(snow)
nNodes <- 4
cl <- makeCluster(nNodes, type = "SOCK")
fm <- parApply(cl, myData, c(1,2), func1, ...)
Since I have a Mac OS X (version 10.4.11) with two dual-core
processors, I thought that I could run 4 simultaneous clusters.
However with the 1st job
2010 Nov 02
2
on the usage of do.call
Hello all,
I don't know if it is possible, but I would like to use do.call in C code in
my package. The function do.call is defined as
> do.call
function (what, args, quote = FALSE, envir = parent.frame())
{
if (!is.list(args))
stop("second argument must be a list")
if (quote) {
enquote <- function(x) as.call(list(as.name("quote"),
2009 Aug 23
3
Wine 1.1.28 tests 2 pc config and many games
Phenom AMD 4x 9850 2.5Ghz oveclocked to 2.7Ghz
Gygabite GA-MA78G-d3H, 8Gb RAM , 320Hdd
UBuntu Linux 9.04 64 bit with wine 1.1.28
Tested 2 videocards
test 1 - Radeon HD3200 (inside) 256Mb (wine 1.1.26) drv Ati 9.8
test 2 - Nvidia Geforce 9800 GT 1Gb (wine 1.1.28) drv Nvidia 190
With test i not used other dll's , not used registry files
just install and run game (and check
2009 Nov 15
3
Error running lda example from Help File (MASS library )
Hello all,
I'm trying to run lda() from the MASS library but the Help example generates
the
following error:
#Code from example in lda Help file
# Resulting Error
>Error in if (targetlist[i] == stringname) { : argument is of length zero
My Current R Installation:
MacOSX: 10.5.8
R: 2.10.0
--
Gregory Riddick, PhD.
CRTA Research Fellow
National Institutes of Health
National
2012 Oct 23
0
Typos/omissions/inconsistencies in man page for clusterApply
Hi,
Here are the issues I found:
Typos
-----
(a) Found: It a parallel version of ?evalq?,
"is" missing.
(b) Found: 'parLapplyLB', 'parSapplyLB' are load-balancing versions,
intended for use when applying ?FUN? to
'parLapplyLB' has no 'FUN' arg (more on this below).
(c) Found: 'clusterApply' calls 'fun' on the first
2012 Jun 26
2
flatten lists
I am looking for a function to flatten a list to a list of only 1
level deep. Very similar to unlist, however I don't want to turn it
into a vector because then everything will be casted to character
vectors:
x <- list(name="Jeroen", age=27, married=FALSE,
home=list(country="Netherlands", city="Utrecht"))
unlist(x)
This function sort of does it:
flatlist
2009 Nov 17
1
Error running lda example: Session Info
>
> library(MASS)
> Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]),
+ Sp = rep(c("s","c","v"), rep(50,3)))
> train <- sample(1:150, 75)
> table(Iris$Sp[train])
c s v
22 23 30
> z <- lda(Sp ~ ., Iris, prior = c(1,1,1)/3, subset = train)
Error in if (targetlist[i] == stringname) { : argument is of length
2012 Jun 05
1
load coda in BRugs to perfor diagnostics
Dear all,
I just wrote a script to have each of my three mcmc chins running on a
different computer core to improve computation speed. To do it I use the
function sfLapply from the package snowfall.
Before using parallell computation, I did my diagnostic analyses just after
the model updating, but now I have to save the coda before.
Using the CODA package, it is possible to load the outputs in a
2008 Dec 06
1
snowfall sfInit error
Dear all,
I am trying to execute the simple example in snowfall
http://cran.r-project.org/web/packages/snowfall/vignettes/snowfall.pdf ...
require(snow)
require(snowfall)
sfInit( parallel=TRUE, cpus=2 )
sfLapply( 1:10, exp )
sfStop()
I have installed the snow and snowfall packages in R on a machine with
windows xp, however, after running the "sfInit( parallel=TRUE, cpus=2 )"
line I
2012 Apr 05
1
is parallel computing possible for 'rollapplyr' job?
Hi,
The code below does exactly what I want in sequential mode. But, it is slow and I want to run it in parallel mode. I examined some windows version packages (parallel, snow, snowfall,..) but could not solve my specific problem. As far as I understood, either I have to write a new function like sfRollapplyr or I have to change my code in a way that it utilizes lapply, or sapply instead of
2010 Dec 02
1
parLapply - Error in do.call("fun", lapply(args, enquote)) : could not find function "fun"
Hello everybody,
I've got a bit of a problem with parLapply that's left me scratching my head
today. I've tried this in R 2.11 and the 23 bit Revolution R Enterprise and
gotten the same result, OS in question is Windows XP, the package involved
is the snow package.
I've got a list of 20 rain/no rain (1/0) situations for these two stations i
and j, all the items in this list look
2010 Sep 09
2
plot symbol "+", but with variable bar lenghts
Hi,
does anybody know of some plotting function or an easy way to
generate "+" symbols with individually settable bar lengths?
I tried just combining "|" and "-" as pch and setting the size via cex,
but that doesn't really work since the two symbols have different default
lengths. Is there a horizontal | or a longer "-" available?
Thanks,
Rainer
2012 Mar 15
3
single, double or no quotes in expression
Dear all,
I am confused about how to create an expression. I use a package (rsbml)
which uses expressions and seems to make a difference if there is a quote
around the expression or not.
For example, package works with expressions such as
> expression(A + B)
but not with
> expression("A + B")
I now have a set of math expressions represented as strings, something like
this:
>
2012 Aug 21
1
parLapply fails to detect default cluster?
invoking parLapply without a cluster fails to find a previously
registered cluster
> library(parallel)
> setDefaultCluster(makePSOCKcluster(2))
> parLapply(X=1:2, fun=function(...) {})
Error in cut.default(i, breaks) : invalid number of intervals
This is because in parLapply length(cl) is determined before
defaultCluster(cl) is called. By inspection, this appears to be true of
2010 Apr 09
1
Rsge: recursive parallelization
In principle, I'd like to be able to do something like this:
sge.parLapply(seq(10), function(x) parLapply(seq(x), function(x) x^2))
In practice, however, I have to resort to acrobatics like this:
sge.options(sge.remove.files=FALSE)
sge.options(sge.qsub.options='-cwd -V')
sge.parLapply(seq(10),
function(x) {
sge.options(sge.save.global=TRUE)