Displaying 20 results from an estimated 200 matches similar to: "Patch to fix small bug in do_External and do_dotcall"
2011 Aug 17
3
getNativeSymbolInfo("user_unif_rand") returns different results on windows and linux
Hi,
When loading a package that provides the user-supplied RNG hook
user_unif_rand, calling getNativeSymbolInfo("user_unif_rand") returns
informations about the loaded symbol.
I am using this to identify which package currently provides the RNG hook.
The results are the same on windows and linux if only one library
provides the hook.
If one loads a second package that provides this
2007 Apr 13
2
R on Solaris 10 x64
Hi R Developers,
Greg is helping me with debugging R on Solaris 10 x64. Please let us
know if you have any thoughts or tips that can help us debug this.
Thanks,
David
************
Using default transfer plist
in vector_io: permuting
About to write
*** caught segfault ***
address e8554000, cause 'memory not mapped'
Traceback:
1: .External("do_hdf5save", call,
2012 Jan 09
1
serializing recordedplot object
I use recordPlot() to save plots to disk that I render later to a
variety of formats. This works fine for base R plots and ggplot2
plots, and also used to work for lattice plots. However somewhere in
version 2.14 things stopped working for lattice plots. Here is an
example:
library(lattice);
histogram(rnorm(100));
x <- recordPlot();
saveRDS(x, "myplot.rds");
y <-
2008 Apr 09
1
getNativeSymbolInfo fails with Fortran symbol.
In the following code routine 'initaquaphy' is defined in Fortran,
and dynamically loaded into R.:
test.f:
subroutine initaquaphy(odeparms)
external odeparms
double precision pars(19)
common /myparms/pars
call odeparms(19, pars)
return
end
$ R CMD SHLIB Aquaphy.f
gfortran -fpic -g -O2 -c test.f -o test.o
gcc -std=gnu99 -shared
2024 May 28
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
I have a use case with tcltk-package where I need to repeatedly call Tcl/Tk functions
very quickly. For such purpose, the standard R-interface turned out to be too slow, and
better option has been to call package's C-function dotTcl directly from my own C-code.
Before R 4.4.0 it was possible to use getNativeSymbolInfo("dotTcl","tcltk")$address (or
2005 Dec 28
2
.Call not counting parameters consistently (PR#8450)
The R_registerRoutines C function allows the number of parameters to a
.Call function to be registered. For example, the tools package
function md5sum() calls "Rmd5", which has been registered to require
just one parameter.
But if it is called with the wrong number of parameters, only the first
error gets caught:
> library(tools)
>
2015 Aug 14
2
Build R on Haiku
Hi R-devel,
I'm trying to get R 3.2.1 working on Haiku (an open source OS inspired by
BeOS, not Linux based) on i586. With a few small changes to library paths
and ifdefs I am able to get a seemingly working R binary. The build process
stops with the 'tools' package. The last lines from make are below.
Does anyone have any tips? I'm rather new to debugging at this low level.
Are
2016 Jun 30
2
Calling C implementations of rnorm and friends
Hi all,
Looking at the body for the function rnorm, I see that the body of the
function is:
.Call(C_rnorm, n, mean, sd)
I want to implement functions that generate normal (and other) random
variables. Now, I understand that I can perfectly well just call the R
wrapper for these functions and that will be almost indistinguishable for
most purposes, but for whatever reason I wanted to try and
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
Dear all,
I am sending a patch for extending pdf device to embed popup text and web links.
I implemented this feature by using annotation object, a interactive
feature of pdf.
You can see a sample code for using this feature in the following, and
sample pdf is in
2012 Nov 01
1
Looking for mingw32-make.exe (make.exe not working) in RTools
Hi,
I am using premake4 generated make files to compile my projects, which
works fine if I am using mingw32-make.exe from the MinGW 32 bit
distribution, but doesn't work with the make.exe supplied by the latest
RTools 2.16.
That make.exe first complains it can't create directories and then that it
has "no rule".
So how comes there is no mingw32-make.exe along with RTools?
I
2016 Jul 01
2
Calling C implementations of rnorm and friends
Gabriel,
Thanks for that! I guess I really should have figured that one out sooner,
huh?
I understand why that wouldn't be CRAN-compliant. But then, what *is* the
proper way to do it? Is there any way I can call unexported functions from
another package and have it accepted by CRAN?
Also, if I instead re-write the random variable generating functions, do
you have any idea of where the
2013 Apr 23
2
Help: Where can I find the code for 'C_Cdqrls'?
Dear all,
I’m not sure if it is O.K. to ask this question here.
But where can I find the code for the function ‘C_Cdqrls’ which is called by the R function ‘lsfit‘.
Thank you all.
Sorry for being naïve if so.
--------------------
Ziqiang Zhao
2013-04-23
[[alternative HTML version deleted]]
2011 Feb 13
1
CRAN package sizes
Robin Hankin's post reminded me to post about the following recent
addition to 'Writing R Extensions', in the section on 'Submitting a
package to CRAN'
Ensure that the package sources are not unnecessarily large. ...
As a general rule, doc directories should not exceed 5Mb, and
where data directories need to be 10Mb or more, consideration should
be given to a
2024 May 30
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
I asked Tomas.
Apparently this works:
getNativeSymbolInfo("dotTcl",PACKAGE=getLoadedDLLs()$tcltk)
and the tcltk behavior was changed by
r84265 | hornik | 2023-04-15 08:44:36 +0200 (Sat, 15 Apr 2023) | 1 line
Try forcing symbols in ff calls.
Index: library/tcltk/src/init.c
===================================================================
--- library/tcltk/src/init.c
2014 Apr 18
1
Why did R 3.0's resolveNativeRoutine remove full-search ability?
In versions of R prior to 3.0, by default .C and .Call would find the
requested C function regardless of which shared library it was located
in. You could use the PACKAGE argument to restrict the search to a
specific library, but doing so was not necessary for it to work.
R 3.0 introduced a significant change to that behavior; from the NEWS
file:
CHANGES IN R 3.0.0:
PERFORMANCE
2016 Jul 01
1
Calling C implementations of rnorm and friends
Well,
For this particular use case why not just transform the parameters at the R
level and then call the existing function? Is there not a closed form
mapping?
~G
On Jul 1, 2016 2:50 PM, "Joshua Ulrich" <josh.m.ulrich at gmail.com> wrote:
> On Fri, Jul 1, 2016 at 6:13 AM, Luis Usier
> <luis.henrique.usier at gmail.com> wrote:
> > Gabriel,
> >
> >
2018 Apr 03
1
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
>>>>> Paul Murrell <paul at stat.auckland.ac.nz>
>>>>> on Tue, 3 Apr 2018 09:41:56 +1200 writes:
> Hi What you are doing "wrong" is loading a recordedplot
> into the same session that it was created in. The
> saveRDS()/readRDS() works if you save in one R session and
> then read in a different R session. The
2009 Sep 16
1
list of symbols to substitution
Hi,
I'm trying to use a list of symbols as one of the values to be
substituted in a substitute expression, but I can't figure out how to
write the correct expression for my problem. Let me illustrate a
simple example of what I'm trying to do. The following code snippet
will evaluate to '5':
symname <- 'foo'
foo <- 5
expr <- substitute(c(expr), list(expr =
2006 Apr 24
0
R 2.3.0 is released
I've rolled up R-2.3.0.tar.gz a short while ago. This version contains
several changes and additions, mostly incremental. See the full list
of changes below.
You can get it (in a short while) from
http://cran.r-project.org/src/base/R-2/R-2.3.0.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in due course.
There is also a
2006 Apr 24
0
R 2.3.0 is released
I've rolled up R-2.3.0.tar.gz a short while ago. This version contains
several changes and additions, mostly incremental. See the full list
of changes below.
You can get it (in a short while) from
http://cran.r-project.org/src/base/R-2/R-2.3.0.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in due course.
There is also a