Displaying 20 results from an estimated 200 matches similar to: "R Include File Guards"
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
In what way is this a bug in R? It looks like a bug in the package, and
as Defn.h is not part of R's API any packge using it is `at risk' (and
cannot be installed in a binary-only installation, or even an installed
version of R).
In particular, Defn,.h depends on config.h, and it seems you installed a
binary version of R and used separate sources. I would suggest building
R from
2008 Feb 27
1
d_fontdb.d, g_her_glyph.d
Dear Developers,
I'm updating my R installation via svn (currently: Revision 44626). For
some time now (sorry don't know the exact revision number) make for R
devel yields the following error
make[4]: *** Keine Regel vorhanden, um das Target
?../../../src/include/R_ext/GraphicsBase.h?,
ben?tigt von ?g_fontdb.o?, zu erstellen. Schluss.
(translation: no rule to make target ...
2007 Nov 07
1
problem in linking to libR.so with R 2.5.0
Dear All,
I tried to write a C++ program that uses R internals and I encounter
"undefined reference" error when linking to libR.so. Here is an small
example of the program test.cpp:
extern "C" {
#include <config.h>
#include <IOStuff.h>
int main(int argc, char** argv)
{
R_IoBufferInit(&R_ConsoleIob);
return 0;
}
}
I built it using:
g++ -o test
2018 Feb 15
1
missing extern in GraphicsBase.h
Dear all,
in src/include/GraphicsBase.h one has a declaration
int baseRegisterIndex;
the same as in src/main/devices.c
which causes problems on Solaris, see bug #17385,
and other platforms with "unusual" linkers, see bug #16633.
By right, global variables like baseRegisterIndex are to be
declared just once, and not in a header file, but in a *.c file.
Then, to use them elsewhere in
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
Hi Ivan
Can you please clarify what input files should be used with your
proposed function? I tried a few files in r-svn/src/include and one of
them gave me an error.
> getdecl("~/R/r-svn/src/include/R.h")
[1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent"
> getdecl("~/R/r-svn/src/include/Rdefines.h")
Error in regmatches(lines,
2006 Apr 12
0
headerfile translation to Delphi (Pascal) completed
Hi,
I am happy to announce that I finished the translation of almost all
LGPL'ed R headerfiles to Delphi. As a test I did several demos which
basically contain delphized versions of all the examples of chapter 5
in "Writing R Extensions".
Please have a look in the attachments for details
(DemosAndHeaders.txt), more information (Readme.txt) and an example of
how it looks
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
Full_Name: Richard Boyce
Version: 2.1.-1
OS: Debian testing/unstable
Submission from: (NULL) (128.95.123.29)
While building a custom package using a modified version of Duncan's REventLoop
with R version 2.1 (Debian package r-base, r-base-dev) and R source from apt-get
source 2.1.1 I get the following error:
$ R CMD build vjREventLoop
* checking for file
2005 Apr 02
2
Building new graphic device drivers with g++
Dear Group,
I'm trying to build a set of new graphic device drivers. I use the
devNull example a a beginning point:
$ R CMD SHLIB devNull.c
gcc -shared -L/usr/local/lib -o devNull.so devNull.o
(everything works OK)
$ R CMD SHLIB devNull.cpp
g++ -shared -L/usr/local/lib -o devNull.so devNull.o
(everything works OK)
The difficulties start when trying to compile manually. I compile the
2019 May 19
4
most robust way to call R API functions from a secondary thread
Hi,
As the subject suggests, I am looking for the most robust way to call an (arbitrary) function from the R API from another but the main POSIX thread in a package's code.
I know that, "[c]alling any of the R API from threaded code is ?for experts only? and strongly discouraged. Many functions in the R API modify internal R data structures and might corrupt these data structures if
2012 Jan 11
1
Inconsistencies in device_Raster when axes are reflected
I noticed some undocumented and inconsistent behavior in device_Raster when a
plot is produced with reflected axes such as:
image(volcano, xlim = c(1,0), useRaster = TRUE)
image(volcano, ylim = c(1,0), useRaster = TRUE)
The `pdf` device will perform horizontal and vertical reflections, while
`quartz` will ignore the transformations when plotting to the screen, but
when plotting to a
2008 Jun 03
2
JGR / linux
Hi all,
i'm trying to install JGR on linux (see bottom), but it runs into errors.
The bottom of the sequence below shows "JavaJD could not be found"
Any suggestion, please?
$ sudo apt-get install sun-java6-jdk
$ sudo update-alternatives --config java
There are 5 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1
2019 May 20
1
most robust way to call R API functions from a secondary thread
Stepan,
Andreas gave a lot more thought into what you question in your reply. His question was how you can avoid what you where proposing and have proper threading under safe conditions. Having dealt with this before, I think Andreas' write up is pretty much the most complete analysis I have seen. I'd wait for Luke to chime in as the ultimate authority if he gets to it.
The
2017 Feb 27
1
Graphics Device API change
Hi
r72261 in r-devel has modified the graphics device API and bumped
R_GE_version in GraphicsEngine.h (to satisfy PR 16951).
This means that ...
(i) third-party graphics device packages need to be reinstalled.
(ii) third-party graphics device packages will ideally need a new
version for r-devel.
(iii) any packages that make use of getGraphicsEvent() should test
against r-devel (and let me
2007 Apr 18
1
undefined symbol: Rf_rownamesgets
I get the error
undefined symbol: Rf_rownamesgets
when I try to load my package, which include C++ code that calls that
function. This is particularly strange since the code also calls
Rf_classgets, and it loaded OK with just that.
Can anyone tell me what's going on?
For the record, I worked around this with the general purpose
attribute setting commands and R_RowNamesSymbol. I
2008 Jan 28
0
Notes for writers of graphics devices
Partly about new features and partly about old features that are not being
used.
R_exts/GraphicsEngine.h says
/*
* The current graphics engine (including graphics device) API version
* MUST be integer
*
* This number should be bumped whenever there are changes to
* GraphicsEngine.h or GraphicsDevice.h so that add-on packages
* that compile against these headers (graphics systems
2009 Dec 01
6
raster support in graphics devices
Hi
This is for developers of extension packages that provide extra
*graphics devices* for R.
In the *development* version of R, support has been added to the
graphics engine for sending raster images (bitmaps) to a graphics
device. This consists mainly of two new device functions: dev_Raster()
and dev_Cap().
The R_GE_version constant (in GraphicsEngine.h) has been bumped up to 6
as a
2005 May 24
1
contourLines() starts a plot device
I want to use contourLines() to get contour line coordinate vectors,
but I don't want to make a plot. However contourLines() insists on
opening a graphics device. Is there a way tell it not to do this?
> version
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status Patched
major 2
minor 1.0
year 2005
month 04
day 20
language R
2024 Jun 06
4
clarifying and adjusting the C API for R
This is an update on some current work on the C API for use in R
extensions.
The internal R implementation makes use of tens of thousands of C
entry points. On Linux and Windows, which support visibility
restrictions, most of these are visible only within the R executble or
shared library. About 1500 are not hidden and are visible to
dynamically loaded shared libraries, such as ones in packages,
2015 May 17
1
The function cummax() seems to have a bug.
Hi,
The function cummax() seems to have a bug.
> x <- c(NA, 0)
> storage.mode(x) <- "integer"
> cummax(x)
[1] NA 0
The correct result of this case should be NA NA. The mistake in [
https://github.com/wch/r-source/blob/trunk/src/main/cum.c#L130-L136] may be
the reason.
Best Regards,
Dongcan
--
Dongcan Jiang
Team of Search Engine & Web Mining
School of Electronic
2008 Jan 27
1
Strict-prototypes definitions in R includes
Dear list,
Whenever the flag "-Wstrict-prototypes" is set in gcc, compiling code that
includes headers in lib/R/include generates often warnings
(example with R-2.6.1:
Rinternals.h:560: warning: function declaration isn't a prototype
).
All such warnings I looked at were about functions with empty
signatures declared
as "bar foo();" rather than "bar