alling cmake.
Please read https://github.com/wush978/RCMake/blob/master/README.md
for further introductions.
The package is still under testing, so please report the bugs or give
me some feedbacks on https://github.com/wush978/RCMake/issues
Thanks
Wush Wu
_
Hi Tal,
> That is, say that we have x as a List, how do we go about fetching its
attr?
> I tried:
> x[1].attr("type")
> x.attr[1]("type")
> But none seemed to have worked. Any suggestions there?
Here is a script to show you how to access them:
```r
x <- list(a = 1, b = 2, c = list(ca = 3, cb = 4
Hi all,
I wrote a wrapper of hiredis, which is a minimalistic C client for the
Redis database. Its name is `Rhiredis` and is much faster than rredis, an
existed redis client of R. Please see http://rpubs.com/wush978/rhiredis for
details.
Thanks for the Rcpp, it is much easier to wrap a C library
gt; | On 22 July 2013 at 13:19, rom...@r-enthusiasts.com wrote:
> | | Le 2013-07-22 10:12, Wush Wu a écrit :
> | | > I wrote a wrapper of hiredis, which is a minimalistic C client for
> | | > the Redis database. Its name is `Rhiredis` and is much faster than
> | | > rredis, an e
By the way, maybe you should look two files in `inst`.
The `gen_function.R` crawls http://redis.io/commands and generates the
command according to the official redis manual. You could modify
`template.R` to generate the helper functions dynamically based on the
exposed Rcpp function.
Hope it help
Thanks for your suggestion, Dirk.
I'll try to rewrite Rhiredis based on your approach and provide a similar
rredis interface. If everything is good, I'll try to make it on CRAN if it
is possible.
2013/7/24 Dirk Eddelbuettel
>
> Hi Wush,
>
> After some more cleanup and consolidation, the packag
For me, there are two reasons to learn Rcpp:
1. Rcpp provides a straightforward way to speed up existed R script.
I answered 2 question of speeding up R code on StackOverflow with Rcpp:
http://stackoverflow.com/questions/14495697/speeding-up-a-repeated-function-call/14495967#14495967
For this q
LinkedIn
rcpp-devel,
I'd like to add you to my professional network on LinkedIn.
- Wush
Wush Wu
PhD Student at Institute of Electrical Engineering, National Taiwan University
Taiwan
Confirm that you know Wush Wu:
https://www.linkedin.com/e/1p7qzd-hk2m2aez-18/isd/156067
Hi all,
I am very sorry about this spam message. Please ignore it.
Best,
Wush
2013/8/7 下午10:07 於 "Wush Wu" 寫道:
>
> [image: LinkedIn]
>
>
>
>
> * From Wush Wu *
>
> PhD Student at Institute of Electrical Engineering, National Taiwan
> Universi
Maybe you need to set some flag in NAMESPACES to ask the package to load
required libraries.
Hope that help.
Hey again,
I built the default Rcpp.package.skeleton rcpp_hello_world to take in
strings and it worked fine. My problems seem to be from the libraries
themselves. I recompiled the librarie
"Rcpp:::LdFlags()"`
OBJECTS = RcppExports.o rcpp_hello_world.o
/home/wush/Test/TestLinking/inst/linkHello.so
```
Is that correct?
Thanks,
Wush
2013/8/20 Dirk Eddelbuettel
>
> On 20 August 2013 at 08:34, Wush Wu wrote:
> | Maybe you need to set some flag in NAMESPACES to
Hi Tal,
```
cppFunction('
std::vector temp2_fail(RObject x){
std::vector lower;
List x_list(wrap(x));
int n = x_list.size();
lower.push_back(x);
return(lower) ;
}
')
```
Is this what you want?
2013/8/20 Tal Galili
> Dear list members,
>
> I would like to be able to
Hello,
I am working on the R wrapper of hiredis, which is a C library released
under BSD license. Since the development package of libhiredis is not
available on many OS such as Mac OS X,Solaris and Windows, I need to embed
the source code of hiredis in the package to make it work.
I submitted my
Dear Dirk,
About hiredis, I am trying to improve the efficiency of rredis with Bryan,
the maintainer of rredis now. Even though we might not need hiredis, the
copyright issue will still bother me in the future.
Note that your example is interesting, because it shows that the
performance of rredis
Dear all,
I have a question which is described in the subject.
It is discovered when I use the valgrind to check my package.
Because I am not familiar with valgrind, please help me verify that if this
is a bug of Rcpp or not.
Here is a minimal reproducible example with docker and the log of val
However, if I manually use a try/catch to enclose the exception, then the
valgrind detects no error.
It seems that raising R error causes the memory error, is it?
2014-12-30 1:42 GMT+08:00 Romain Francois :
> includes
___
Rcpp-devel mailing list
Rcpp-d
Dear Romain, Dirk, and Qiang,
Thanks for Romain's reminder of auto appended catch block, Dirk's
explanation of leaks and exception and Qiang's simple example. Now I
understand that an uncaught exception in a c++ program might cause memory
leak. A SO Q&A (
http://stackoverflow.com/questions/2767789
Hi all,
I just learned the function `checkUserInterrupt` and played with it in my
package today. At first, everything was good. However, I sensed something
wrong when I interrupted my function and relaunched it. In my case, the
thread number of OpenMP decreased to 1 after an user interruption.
Ac
e
> describing its use.
>
> (We might also consider in Rcpp wrapping our calls to Rprintf() in
> R_ToplevelExec() and 'catching' and 'rethrowing' interrupts seen, but this
> might have some unintended side-effects)
>
> Best,
> Kevin
>
> On Thu, Jul 26,
lso consider in Rcpp wrapping our calls to Rprintf() in
> R_ToplevelExec() and 'catching' and 'rethrowing' interrupts seen, but this
> might have some unintended side-effects)
>
> Best,
> Kevin
>
> On Thu, Jul 26, 2018 at 8:18 AM Wush Wu wrote:
>
>&g
20 matches
Mail list logo