similar to: Linking to headers and shared library in another package

Displaying 20 results from an estimated 7000 matches similar to: "Linking to headers and shared library in another package"

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
2008 Apr 17
1
LinkingTo for 2 packages
Hello, One of our packages contains C++ code that needs to be compiled against 2 other packages. So the LinkingTo field in DESCRIPTION looks like this LinkingTo: FLCore,FLash Both packages are also in the Depends field. In R 2.6.2, first thing we noticed was that both names could not have any space between them, althoguh the example in the html version of "Writing R Extensions" does
2007 Dec 20
2
SHLIB steps on a Makefile
Hi, I need to create a Makefile.win for a given package so as to fiddle slightly with the compilation process. My Makefile works fine in Linux but I am having trouble creating Makefile.win for MinGW. I first looked at the commands that Rcmd SHLIB appeared to be running and copied those onto the Makefile. But one step seems to be missing, the creation of the _res.rc file needed by windres
2004 Oct 19
1
Cross compiling in R-2.0.0
Hello, When compiling R-2.0.0 for cross-compiling, I get the following error when calling 'make R' ---------- Making package base ------------ adding build stamp to DESCRIPTION /bin/sh: line 1: --vanilla: command not found make[5]: *** [frontmatter] Erro 127 make[4]: *** [all] Erro 2 make[3]: *** [pkg-base] Erro 2 make[2]: *** [rpackage] Erro 2 make[1]: *** [all] Erro 2 make[1]:
2007 Apr 19
2
setClass inside a function
Hello, I would like to create a function that gets passed a class name and then calls setClass, and a few other functions, inside. I have done this in the past with setmethod, creating accessors for all slots in a set of S4 classes. But setClass is choking when my function is called isnide a package, telling about an error in exists(cname, where). I assume this to be a problem with the
2004 Jun 16
2
Loading 'akward' data file
Generally you'd use file() to open the file, then use readLines(), say inside a while() loop to read one `chunk' at a time. However, your example looks a bit strange. The possibility of empty line makes it a bit more complicated, by that last couple of lines seems to suggest that you could have a line of data follow by another line of data without variable label. If that's true, I
2008 May 20
1
S4 generic for lowess
Hi, A lowess method is defined in our package for one of our S4 classes. To explicitely define the generic this is being used if (!isGeneric("lowess")) setGeneric("lowess", useAsDefault = lowess) This works fine for many other methods inherited from various R packages. In this case a warning is issued in R CMD check: * checking R code for possible problems ... NOTE
2005 Jun 14
1
operators as S4 methods
Dear all, I need to re-define some mathematical operators (+, *, /, etc) for an S4 class based on array. All references I have found (S Programming, Green Book) show how to define S3 methods for this (like in page 89 of S Programming for "-.polynomial"). What is the preferred S4 way for doing this? I hope I haven't missed some obvious piece of documentation. Many thanks, Iago
2008 Oct 07
1
LinkingTo on Windows
Dear List, R packages may specify a "LinkingTo" attribute to specify dependencies to the source code (mainly the header files) of other packages. Unfortunately, it is not possible to also have a reference to the generated library (.dll on Windows) of the other package. So including a header file from another package to call an (exported) function will just not help. I've tried
2008 May 28
1
Cross-compilers for 2.7.0
Hello, Am I right in thinking the cross-compilations tools, kindly maintained by Prof Ripley, are still waiting to be updated for 2.7.0? Thanks, Iago -- Iago Mosqueira Cefas Systems Modelling Pakefield Rd. Lowestoft NR33 0HT U.K. +44 (0)1502 558003
2011 Jun 01
1
Overloading S4 methods
Dear all, I am experiencing some problems with S4 method overloading. I have defined a generic for graphics:plot, using setGeneric("plot", useAsDefault = plot) and with importFrom('graphics', 'plot') and exportMethods('plot') in the NAMESPACE file of pkg A. I then proceed to define a method for signature c('myS4class', 'missing'). This works
2003 Aug 21
2
mcmc
Hello, I am about to move all of my modelling work into R, and I have been investigating the present state of MCMC and Bayesian methods in R. Following a thread on the mailing list in 2000, I have looked at mcmcpack and Hydra. Three years down the line, is there anything new in this area? I have used both MCSim and WinBUGS in the past. The first one seems promising, but is too focused towards
2006 Mar 29
1
Bundle internal dependencies
Dear all, When creating a bundle with some internal dependencies (package B in bundle depends on package A), would having the same version installed suffice? Can I ignore the dependencie in package B's description? The test of package B fails when calling data() for an object in pacakge A, so I am not sure right now whether the whole dependencie is not being met or simple relates to data().
2004 Jun 21
2
Cross build Makefile
Hello, I am trying to use Yan and Rossini's Makefile for cross building Windows versions of R packages in Linux with R 1.9.0. When compiling R with the mingw tools I get an error about expm1 being undeclared when first found at src/main/arithmetic.c:1019 If I fiddle a bit with it later on I also get errors about log1p bein undeclared. Any idea what should I look for? I am using R 1.9.0 in
2004 Jun 21
2
Cross build Makefile
Hello, I am trying to use Yan and Rossini's Makefile for cross building Windows versions of R packages in Linux with R 1.9.0. When compiling R with the mingw tools I get an error about expm1 being undeclared when first found at src/main/arithmetic.c:1019 If I fiddle a bit with it later on I also get errors about log1p bein undeclared. Any idea what should I look for? I am using R 1.9.0 in
2009 Feb 04
1
lattice key inside panel
Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses panel.number() to use a slightly different style for one of the panels. Once inside than panel I am using draw.key(list(text=list(lab='catch'), lines=list(lwd=c(2)), text=list(lab='landings'), rectangles=list(col=rgb(0.1, 0.1, 0, 0.1)), x=0,
2004 Nov 29
1
\link{} to help pages in Debian
Hello, In my Debian 3.0 systems, packages are installed in two different places, namely /usr/lib/R/library and /usr/local/lib/R/site-library, depending on whether they come from debian packages or CRAN ones. Help pages for my own packages, installed in the second location, cannot find help pages from, for example, the base package via \link{}. I also tried specifying the package with
2013 May 24
0
Rcpp with OpenMP - Need example Makevars
Dear R experts, recently I started developing a Rcpp package "OpenMPTest". Within that package I want to use OpenMP, as in the following code example: // header file #include <omp.h> using namespace Rcpp ; RcppExport SEXP testOpenMP( SEXP nThreads ) ; // cpp file SEXP testOpenMP( SEXP nThreads ) { BEGIN_RCPP NumericVector numberThreads = NumericVector( nThreads );
2002 Feb 08
2
glm with four variables
Hi, Sorry if this is a very basic question, but when I run this glm(formula = loge ~ lat + ne + dep, family = gaussian) summary shows the same formula but results only for the first two variables. What am I doing wrong? iago -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2011 May 20
2
Calling Rscript from Makevars
Hi, I am trying to package some code to use with R and wanted to call Rscript from within the Makevars file (I am trying to automate the setting of the location of a third party library depending on what is available / the system the package is being installed on). If I just have a simple Makevars containing PKG_LIBS= -lnag_nag -L/fserver/nagprod/FL22/fll6a22df/lib the package is built