Displaying 20 results from an estimated 3000 matches similar to: "External special functions (SPECIALSXP)"
2009 Sep 12
1
Access to integer value of BUILTINSXP/SPECIALSXP
Hello,
For the BUILTINSXP and SPECIALSXP types, the R Internals page documents
"An integer giving the offset into the table of primitives/.Internals. "
What macro gives me the value of this integer? I guess something like
this would work
had R_USEINTERNALS been defined
v->u.primsxp.offset
(where v is a SEXP of either of the above types).
What is the portable version?
Thank you
2004 May 30
1
What's wrong with this simple code???
Hi, all
I can not figure this out, please have a look and help me out.
thank you!
Note: this is in SPLUS, not R.
I have following code
***********************************
modfit<-function(yir,yew, ft) {
n<-length(yew)
yew<-yew[1:(n-1)]
yy<-yir-ft
xx<-yew-ft
n<-length(xx)
xx0<-xx[2:n]
yy0 <-yy [2:n]
xx1<-xx[1:(n-1)]
fit <- garch(yy0~xx0 + xx1+var.in.mean,
2001 Dec 18
1
Newbie problems with R and compiled C
I'm a beginer programming C and I have the following problem:
I have the following C-code file
#include <stdlib.h>
void gen(int *n, int *a, int *c, int *m, int *x0, int *x);
main(){
int nn = 31;
int aa = 3;
int cc = 0;
int mm = 31;
int xx0 = 9;
int xx[nn];
int i;
gen(&nn,&aa,&cc,&mm,&xx0,xx);
for (i = 0; i <= nn-1; i++)
printf("%d
2008 Mar 17
9
Roxygen
Is this the appropriate place for GSoC conversations?
If I understand the proposal correctly, there should be a lexer
(written in R) that exposes an API; that API would be used by
segregated mini-parsers (Roclets) which do the dirty work of Roxygen
-> {html, LaTeX, DocBook, ...} translation.
The lexer should ship with a proof-of-concept Roclet. Have I missed
anything?
2009 Sep 01
2
List of tags in roxygen and use for S4 classes?
Hi
is there a list of all roxygen tags which are available? I couldn't find them.
I am asking specifically towards the use of roxygen in documenting S4
classes - is that implemented yet (i am using roxygen 0.1 from CRAN at
the moment)?
Thanks
Rainer
--
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa
2013 Sep 21
2
LDA quota rejection
Hi to all, i have dovecot 2.2.5 and i have implemented lda rejection
through quota full
this is my dovecot conf
protocol lda {
mail_fsync = optimized
auth_socket_path = /usr/local/var/run/dovecot/auth-userdb
deliver_log_format = msgid=<%f>-<%s>-%m: %$
hostname = mail.cgilfe.it
info_log_path = /var/log/dovecot/dovecot-deliver.log
log_path =
2003 Dec 16
1
Memory issues in "aggregate" (PR#5829)
Full_Name: Ed Borasky
Version: 1.8.1
OS: Windows XP Professional
Submission from: (NULL) (208.252.96.195)
R 1.8.1 seems to be running into a memory allocation problem in the "aggregate"
function. I have a rather large dataset (14 columns by 223,000 rows -- almost 40
megabytes) and a script that performs some processing on it. The system is a 768
MB Pentium 4. Here's the console
2003 Dec 31
2
Calling primitive functions from C code
Does anyone have an example of calling primitive or internal functions from
C code that they would share with me?
I am having trouble trying to figure out how to construct the proper
arguments to pass to "do_subset_dflt"
Here is the prototype:
SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho);
The R_FunTab from "names.c" gives some additional information on the
2003 Dec 31
2
Calling primitive functions from C code
Does anyone have an example of calling primitive or internal functions from
C code that they would share with me?
I am having trouble trying to figure out how to construct the proper
arguments to pass to "do_subset_dflt"
Here is the prototype:
SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho);
The R_FunTab from "names.c" gives some additional information on the
2010 Feb 25
2
proto and baseenv()
I understand why the following happens ($.proto delegates to get,
which ascends the parent hierarchy up to globalenv()), but I still
find it anti-intuitive:
> z <- 1
> y <- proto(a=2)
> y$z
[1] 1
Although this is well-documented behavior; wouldn't it uphold the
principle of least surprise to inherit instead from baseenv() or
emptyenv()? (See attached patch.)
Spurious
2010 May 13
2
Compiling R with --enable-R-shlib for rpy2 error
Hi,
I am trying to compile R with the command below in order to install rpy2.
./configure --prefix=/usr/local/R/R-2.9.2 --with-gnu-ld --with-cairo
--with-x --enable-R-shlib
However, error the I have gotten was:
/usr/bin/ld: CConverters.o: relocation R_X86_64_32S against `R_FunTab' can
not be used when making a shared object; recompile with -fPIC
CConverters.o: could not read symbols: Bad
2002 Oct 14
1
R 1.6.0 Solaris crash with xmalloc: out of virtual memory
[some de-capitalization of *SXP done manually by mailing
list maintainer ; the originally was caught as potential spam. MM]
I have a little R program that crashes with the message
xmalloc: out of virtual memory
The code has a repeat{} loop that watches the sizes of some files.
When there's an increase it updates things by reading the last 65
lines of each file, doing some
2011 Mar 02
3
CentOS 5 install won't make with shared libs enabled
Hi,
I've been trying to get a shared library version of the R package(version
2.12.1) installed on a CentOS 5 system. (It installs fine without but other
packages demand shared libs - namely Rapache).
I've tried this with yum but don't know of any flags to set to tell it to
installl with shared libs enabled. I then tried a local R install as
non-root with source packages:
after
2013 Feb 20
1
GC encountered a node (…) with an unknown SEXP type
Dear All,
I'm trying to track down a very erratic bug in some fortran; I have an example that
quite consistently segfaults on windoz, and more sporadically on mac, all in the
course of doing some bootstrap calculations, varying the set.seed call, but I'm now
trying to see what is going on on our redhat system:
R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
2005 Jan 03
2
Memory problem ... Again
Happy new year to all;
A few days ago, I posted similar problem. At that time, I found out that our
R program had been 32-bit compiled, not 64-bit compiled. So the R program
has been re-installed in 64-bit and run the same job, reading in 150
Affymetrix U133A v2 CEL files and perform dChip processing. However, the
memory problem happened again. Since the amount of physical memory is 64GB,
I think
2019 Oct 07
2
should base R have a piping operator ?
>
> On 7 Oct 2019, at 13:47, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>
> On 07/10/2019 4:22 a.m., Lionel Henry wrote:
>> Hi Gabe,
>>> There is another way the pipe could go into base R that could not be
>>> done in package space and has the potential to mitigate some pretty
>>> serious downsides to the pipes relating to debugging
2005 Oct 17
0
pdIdnot / logLik in glmmPQL
Dear R users,
I have been using the pdMat class "pdIdnot" (from the mgcv
package)instead of "pdIdent" to avoid overflow in GLMM fits with
the MASS package function glmmPQL, of the following form:
fit1 <- glmmPQL(fixed=y0~-1+xx0, random=list(gp=pdIdent(~-1+zz0)),
family=binomial) # vulnerable to overflow
fit2 <- glmmPQL(fixed=y0~-1+xx0,
2015 Jan 22
1
:: and ::: as .Primitives?
On Thu, Jan 22, 2015 at 11:44 AM, <luke-tierney at uiowa.edu> wrote:
> I'm not convinced that how to make :: faster is the right question. If
> you are finding foo::bar being called often enough to matter to your
> overall performance then to me the question is: why are you calling
> foo::bar more than once? Making :: a bit faster by making it a
> primitive will remove
2001 Dec 07
2
Memory problem
Dear all,
I have written a little R program to convert images. See below. Within the
loop over j (the filenames) memory consumption grows constantly. rm( ... )
inside the loop did not help. Memory does not grow if I remove the writeBin
statements between the two #-------- marks. But obviously this is not
solution I want...
Thanks for any advice.
Manfred Baumstark
P.S. As I'm new to R:
2015 Jan 22
5
:: and ::: as .Primitives?
On Thu, Jan 22, 2015 at 11:44 AM, <luke-tierney at uiowa.edu> wrote:
>
> For default methods there ought to be a way to create those so the
> default method is computed at creation or load time and stored in an
> environment.
We had considered that, but we thought the definition of the function
would be easier to interpret if it explicitly specified the namespace,
instead of