Displaying 4 results from an estimated 4 matches for "sfclustereval".
2012 Jun 28
1
undefined S4 class in parallel computing at snowfall
...t;catt"))
f1 <- function(y1) { new('catt', aa = y1 + 1) }
f3 <- function(y2, y3) { new('dogg', bb=c(y2, 'GA'), cc = f1(y3)) }
dat <- 1:5
f1(dat)
f3('NY', dat)
sapply(c("state1", 'state2', 'state3'), f3, dat)
sfExportAll()
sfClusterEval(ls())
sfSapply(c("s1", 's2', 's3'), f3, dat)
sfStop()
# sfSapply generates the following error
# Error in checkForRemoteErrors(val) :
# 2 nodes produced errors; first error: "dogg" is not a defined class
=== end =============
--
View this message in...
2011 Jun 06
1
RPostgreSQL && snowfall
...QLConnection" error.
(Of course the passed Connection Object is usable at that moment and
afterwards!)
(2)
For the creation of DB connections on every node a function handling
the whole connection is sourced into every node.
This function works perfectly without snowfall.
Calling it with
> sfClusterEval(dbConnect())
again only expired connection objects are produced. Even if I create
the connection 'a line above' the code which is connecting to the DB
it doesn't work...
Is there a possibility to connect to PostgreSQL using snowfall?
--
with kind regards
Florian
2012 May 02
6
Quickest way to make a large "empty" file on disk?
R-helpers:
What would be the absolute fastest way to make a large "empty" file (e.g.
filled with all zeroes) on disk, given a byte size and a given number
number of empty values. I know I can use writeBin, but the "object" in
this case may be far too large to store in main memory. I'm asking because
I'm going to use this file in conjunction with mmap to do parallel
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