[Rd] avoid copying big object passed into optimize()

2011-03-09 Thread Zepu Zhang
Hello list, I have the following scenario: f1 <- function(a) { # doing things; may need 'a', but does not change 'a'. g <- function(x) { sum(x + a)# Say. Use 'a'; does not change 'a'. } optimize(f = g, lower = 0, upper = 1) } f2 <- function() {

Re: [Rd] avoid copying big object passed into optimize()

2011-03-17 Thread Zepu Zhang
:15 -0900, Zepu Zhang wrote: > > Hello list, > > > > I have the following scenario: > > > > f1 <- function(a) > > { > > # doing things; may need 'a', but does not change 'a'. > > > > g <- function(x)

[Rd] Conflicts between 'parallel' and 'Rprof', and between two parallel R sessions

2012-01-26 Thread Zepu Zhang
Dear list, I observed two problems that I suppose are generic. First, using 'Rprof' to profile a parallel (based on the package 'parallel') code caused Error in unserialize(node$con) : error reading from connection Second, on a multicore desktop, I concurrently opened two terminals and

[Rd] A Call for a Smaller R Core Package

2006-09-20 Thread Zepu Zhang
atly helps learning and finding things. b) To R users The system (both the core and the specialized package) will be easier to learn and use. -- Zepu Zhang, [EMAIL PROTECTED] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel