[Rcpp-devel] function not getting stored properly..

2018-03-23 Thread akshay kulkarni
dear members, I have created a function mygrpc using cppFunction using Rcpp. When I call the function after starting the R session, I get the following error: > mygrpc(xmc1,ygix,ygrpc) Error in .Call(, x, ygix, ygrpc) : NULL value passed as symbol address xmc1 is a matrix of OHLC data of a s

Re: [Rcpp-devel] function not getting stored properly..

2018-03-23 Thread JJ Allaire
Rcpp functions compiled with sourceCpp/cppFunction/etc. are not stored across sessions. If you want this behavior you should write a package. J.J. On Fri, Mar 23, 2018 at 7:49 AM, akshay kulkarni wrote: > dear members, > > > I have created a function mygrpc using cppFunction using Rcpp. When I

Re: [Rcpp-devel] function not getting stored properly..

2018-03-23 Thread Dirk Eddelbuettel
On 23 March 2018 at 09:11, JJ Allaire wrote: | Rcpp functions compiled with sourceCpp/cppFunction/etc. are not stored | across sessions. If you want this behavior you should write a package. As we already said here: https://stackoverflow.com/questions/49448920/function-not-getting-stored-prop