Displaying 20 results from an estimated 10000 matches similar to: ""Use of ‘.C’ for C++ is now deprecated and will be removed in R 2.12.0""
2010 Oct 08
1
R 2.12.0 alpha/beta/rc warning: spurious or not?
With several versions of R 2.12.0 I have been seeing this when running
R CMD build Rcpp
from the SVN sources:
[...]
Transcript written on Rd2.log.
Saving output to '/home/edd/svn/rcpp/pkg/Rcpp/build/Rcpp.pdf' ...
Warning in file.create(to[okay]) :
cannot create file '/home/edd/svn/rcpp/pkg/Rcpp/build/Rcpp.pdf', reson 'No such file or directory'
Done
2010 Feb 11
2
LinkingTo and C++
Hello,
I've been trying to make LinkingTo work when the package linked to has
c++ code.
I've put dumb packages to illustrate this emails here ;
http://addictedtor.free.fr/misc/linkingto
Package A defines this C++ class:
class A {
public:
A() ;
~A() ;
SEXP hello() ;
} ;
Package B has this function :
SEXP say_hello(){
A a ;
return a.hello() ;
}
headers of package A are copied
2013 Aug 23
1
Makevars and Makeconf sequencing
http://cran.r-project.org/doc/manuals/R-exts.html#Configure-and-cleanup
near the start of 1.2.1 Using Makevars says
> There are some macros which are set whilst configuring the building of
> R itself and are stored in R_HOME/etcR_ARCH/Makeconf. That makefile is
> included as a Makefile after Makevars[.win], and the macros it defines
> can be used in macro assignments and make command
2011 Apr 20
1
FW: [Rcpp-devel] Question on 5.6 Interfacing C++ code
Hi, apparently I sent my question about using R and C++ to the wrong list,
ironically seeing as that list was called Rcpp. Anyway, I was directed to
post my question here. To summarize my current question, I have found two
commands that I want to be able to put into a package. The commands are 'R
CMD SHLIB X.cc X_main.cc' and
2017 Dec 03
2
Rcpp, dyn.load and C++ problems
On 3 December 2017 at 05:23, Eric Berger <ericjberger at gmail.com> wrote:
>
> Do a search on "Rcpp calling C++ functions from R"
>
Thanks. However search for "Rcpp calling C++ functions from R" gives a lot
of result but I think
some of them are outdated and others don't agree with each other.
Can you point to a specific good on-line guide for me?
Regards
2017 Dec 03
1
Rcpp, dyn.load and C++ problems
On 3 December 2017 at 20:19, Dirk Eddelbuettel <edd at debian.org> wrote:
Hi Dirk,
Thanks for your answers. I got a few more questions.
>
> 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read
> this and would have missed this were it not for luck.
OK. I did found the rcpp-devel mailing-list.
But I though it was a developers of the rcpp-package.
So it is ok
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
I would go to the source, in this case Dirk Eddelbuettel's (I hope I
spelled it correctly) documentation for Rcpp:
http://dirk.eddelbuettel.com/code/rcpp/Rcpp-attributes.pdf
Note that you need to do
sourceCpp("logistic_map.cpp")
in R instead of building and dyn.load()-ing the object.
HTH,
Peter
On Sun, Dec 3, 2017 at 11:04 AM, Martin M?ller Skarbiniks Pedersen
<traxplayer
2013 Nov 16
2
Linking to native routines in other packages
Hello,
I'm currently working on making Rcpp use the feature described here more:
http://cran.r-project.org/doc/manuals/R-exts.html#Linking-to-native-routines-in-other-packages
To give more context, Rcpp has for a long time built what we called "the
Rcpp user library", i.e. a library we could link against user the
linker. We were then producing appropriate linker flag with
2011 Sep 13
1
Getting Rcpp SEXP data in C++
Friends
I am looking at Rcpp and I am a bit stuck on a simple matter.
(I am calling R from c++, if there is a better way...)
Given this simple example using the TTR package and the SMA function which
returns a simple moving average....
Rcpp::NumericVector rv;
for(int i = 0; i < 100; i++){
rv.push_back(rand());
}
Rcpp::Environment TTR("package:TTR");
2011 May 06
1
Create and access several instances of a C++ class from R
Hello
We have a C++ class with several methods that manipulate an object. How is it possible to create several instances of that class *from R* in the C++ realm, which can then be accessed via a given name character? Symbolic example (we hope this illustrates our problem):
// C++ side:
class Foo{
...
}
// perhaps:
void my_new_instance_wrapper("the_character") // plain to see that I am
2017 Dec 03
5
Rcpp, dyn.load and C++ problems
Hi,
I have written a small C++ function and compile it.
However in R I can't see the function I have defined in C++.
I have read some web-pages about Rcpp and C++ but it is a bit confusion
for me.
Anyway,
This is the C++-code:
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
List compute_values_cpp(int totalPoints = 1e5, double angle_increment =
0.01, int radius =
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
.Call("compute_values_cpp")
Also, if you were passing arguments to the C++ function you would need to
declare the function differently.
Do a search on "Rcpp calling C++ functions from R"
HTH,
Eric
On Sun, Dec 3, 2017 at 3:06 AM, Martin M?ller Skarbiniks Pedersen <
traxplayer at gmail.com> wrote:
> Hi,
>
> I have written a small C++ function and compile it.
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
Martin,
You are making your life way too complicated.
There are a number of things I would do differently:
0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read
this and would have missed this were it not for luck.
On 3 December 2017 at 02:06, Martin M?ller Skarbiniks Pedersen wrote:
| I have read some web-pages about Rcpp and C++ but it is a bit confusion
| for me.
1)
2015 Feb 21
1
RStudio Calling C++ Visual Studio DLL
All,
I'm a newbie to R and I am interested
in seeing a simple example of calling a 3rd party Visual Studio generated DLL
from RStudio. Does anyone have a simple example which also walks through the
preliminary steps of setting up the INCLUDE path and the library path to either
a DLL or LIB file ? I have tried to find an easy example, but thus far had no
luck finding an example using Rcpp
2010 Feb 25
1
Including Rcpp in Eclipse C++ project
Hello. I am trying to include R in an eclipse C++ project so that I can use
Rcpp and Rinside. Right now I have R installed on my Ubuntu machine and both
plugins are installed too. I have the directories of the corresponding .so
files set in the Project > Properties > Settings Gcc c++ linker under
Library Search Path. Here is the error that I'm getting when I try to build
my code:
>
2019 Jun 18
3
Fast way to call an R function from C++?
Hi,
I'm looking for a most efficient way to call an R function from C++ in a
package. I know there are two functions (`R_forceAndCall` and `Rf_eval`)
that can do the "call" part, but both are slow compared to calling the same
function in R. I also try to use Rcpp and it is the worse one. Here is my
test code:
C++ code:
```
// [[Rcpp::export]]
SEXP C_test1(SEXP f, SEXP x) {
SEXP
2010 Dec 03
1
Error using Rcpp under windows xp
Hi,
I am a newbie to Rcpp packages, and got problems in having basic set-ups for
Rcpp under windows xp. Here is the list I have done.
1) installed Rtools and have no problem in compiling .c file.
2) installed Rcpp packages
3) set enviroment variables 'path' to make C:\Program
Files\R\R-2.12.0\library\Rcpp\include\ searchable
The sample C++ code I used is from the original website:
2011 Jan 26
2
Dealing with R list objects in C/C++
Hi,
I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under tests/Embedding, but can't figure out the correct way. Below is my code snippet:
#include <Rinternals.h>
// Rf_initEmbeddedR and other setups already performed
2011 Jan 20
1
Calling C++ from R
Hi All,
I am new to this area and use Rcpp to call C++ from R and try to build the
package under Windows 7. I use Rtools and R 2.10.1 32bit. Everything works
fine with me, except using R functions like "rnorm" or "runif" in the C++
code. When I use "R CMD check" the package, it always return error
** libs
making DLL ...
g++
2015 Dec 11
1
Runtime error when run a RInside program compiled by intel c++ on windows
I have intstalled R-3.2.2,Rcpp-0.12.2,RInside-0.2.13 on windows. I compiled the example1 of RInside in the
example directory which create a RInside instance and prints "hello world". The compiler is intel c++. I included
the RInside source files in the project and fixed the compile and link errors. But when run the executable file it
prints some error message and quites.
I debug