Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

180 results for “from:Hao”

questions on the ff package
Hao Cen · Nov 24, 2009 · r-help

Hi, I have two questions on using the ff package and wonder if anyone who used ff can share some thoughts. I need to save a matrix as a memory-mapped file and load it back later. To save the...

how to write a function that remembers its state across its calls
Hao Cen · Feb 1, 2010 · r-help

Hi, I wonder how to write a function that remembers its state across its calls. For example, I would like to compute the average of the pass three values the function has seen f(1) # NA f(2) # NA f...

[Rcpp-devel] CharacterVector::is_na
Hao Ye · Feb 10, 2015 · rcpp-devel

Hi Tim, > def = "bool is_na_character_vector(CharacterVector x) { return CharacterVector::is_na(x); }" x is a CharacterVector, so you need to check is_na on each element separately. Try: def = "bool is_first_character_na(CharacterVector x) {return...

tkfocus issue
Hao Liu · Jul 11, 2007 · r-help

Dear All: I am stuck with this issue: I have a button on a TK window, once click it, it pops up a individual plot device: individual_plot <- function() { tkconfigure(overlay.button, state="normal") options(locatorBell = FALSE) plotfuntype() trellis.focus...

pass functions and arguments to function
Hao Cen · Dec 29, 2009 · r-help

Hi, I wonder how to pass several functions and their arguments as arguments to a function. For example, the main function is f = function(X ) { process1(X) ... process2(X) } I have a few functions that operate on X, e.g...

Rmpi and Rprofile
Hao Yu · Apr 22, 2009 · r-sig-hpc

If you leave R script the way it is and add loading Rmpi instructions in Rprofile.site, it will not work (tested on old versions of R and I don't know the reason why). However, by modifying R script...

overlay boxplot
Hao Liu · Jul 10, 2007 · r-help

Thanks... I just realized using add=TRUE will work... Best Hao hadley wickham wrote: > You will get more useful answers if you specify exactly how you want > to overlay the boxplots (overlay them on what?). You can certainly do > this...

CHAR () and Rmpi
Hao Yu · Sep 28, 2007 · r-devel

Hi. I am the maintainer of Rmpi package. Now I have a problem regarding the change of CHAR () in R 2.6.0. According to R 2.6.0 NEWS: ******* CHAR() now returns (const char *) since CHARSXPs should no longer...

how to pass matrices from C to R effectively
Hao Cen · Nov 12, 2009 · r-help

Hi, I have C code to produce a lot of matrices to be analyzed. As these matrices are large (> 1000*10000) and are a lot (> 1000), I am thinking about how to pass them from C to R effectively. Would...

[Rcpp-devel] Question about include paths
Hao Ye · Jun 12, 2015 · rcpp-devel

Hi Tim, My Rcpp package compiles fine with header files in /inst/include (and subfolders), but I do have the following line in my Makevars: > PKG_CXXFLAGS = -pedantic -Wall -I../inst/include You may need the last option there to...

Rmpi, mpi.irecv.Robj
Hao Yu · Oct 31, 2007 · r-devel

mpi.recv or mpi.irecv needs a buffer to store an incoming messenger and must know in advance the size of the buffer. For mpi.irecv.Robj to work, one needs to probe the incoming messenger size which is a...

[Rcpp-devel] Setting seed using Rcpp
Hao Ye · Feb 7, 2018 · rcpp-devel

Hi Youssef, Rcpp has sugar for the R random number generators. This is nice if you want to let your users set the random seed in R code outside of the package for reproducibility: http://gallery.rcpp.org/articles/random...

[Bioc-devel] Windows build error for outdated Shiny package
Chen Hao · Sep 25, 2016 · bioc-devel

Dear Martin, Thanks very much. Best Regards, Chen Hao > On 24 Sep 2016, at 5:44 PM, Martin Morgan <Martin.Morgan at roswellpark.org> wrote: > > On 09/24/2016 05:43 AM, Nuno Agostinho wrote: >> Good evening, >> >> I recently submitted...

[Rcpp-devel] linking error when using matrices?
Hao Ye · Nov 25, 2013 · rcpp-devel

Hi, I just got started using Rcpp after spending a fair amount of time working in the two separately. I'm currently running into some errors with c++ code that tries to use the matrix classes in Rcpp: > > library(Rcpp...

ff package: ff objects don't reload completely on NFS drives from a different machine
Hao Cen · Jan 25, 2010 · r-help

Hi Jens, Thanks for the suggestions. I tried closing the ff file on one nfs client and open that file from another client. It doesn't work. Jeff -----Original Message----- From: Jens Oehlschl?gel [mailto:oehl_list at gmx.de...

[Rcpp-devel] OpenMp and IntegerVector
Hao Ye · Mar 11, 2014 · rcpp-devel

> But your threads, > be it pthreads or C++11 threads are not calling the RNG supplied by R, are they? That is correct. Just reading and writing to c++ vectors (with some non-R deterministic computations in-between) Best, -- Hao...

Possible memory leak for serialize?
Hao Yu · Sep 5, 2012 · r-sig-hpc

Hi. serialize may have memory leak issue. When I run the following codes x=split(1:40000, rep(1:8, 5000)) fun=function(x)lapply(x, serialize, NULL) out =replicate(5000, fun(x)) After using gc() severally times, R reports...

[Rcpp-devel] RcppEigen questions
Hao Xiong · Nov 18, 2011 · rcpp-devel

Hi, I have a few questions about RcppEigen. I hope I am posting on the right list. 1. const-correctness Suppose I have a function double fcn(NumericVector const& points){ ... Map<VectorXd > tmp = as<Map<VectorXd > >(points); ... } It compiles fine...

filehash - multiple indices via '[' not allowed when using RDS format
Hao Cen · Jan 2, 2010 · r-help

Hi, I have been using filehash for a while. It has performed very well. However, recently I found filehash gives an error when I need to do something like db[c("a", "b")] when the db is in RDS format...

[Bioc-devel] New package deadline for this release: 26 September
Chen Hao · Sep 21, 2016 · bioc-devel

Dear Martin and core members, We have a package named uSORT submitted to Bioconductor through GitHub half a month ago, FYI * Github Link: <https://github.com/JinmiaoChenLab/uSORT> * Bioconductor submission track: <https://github.com/Bioconductor/Contributions/issues/104> Now the...

Can't find what you're looking for? Try searching with Google .