Displaying 20 results from an estimated 2000 matches similar to: "Standalone C++ application for processing R parser output(SEXP)"
2007 Sep 17
3
Call C code from R
Hello, All!
I'm new for R-devel list. And I'd like to ask some questions,
maybe they will be stuped for the most part of members of the
list.
I need to call function which is written in C++ from R.
My questions are:
1. How should I include libraries (for example, iomanip,
sstream, iostream)?
2. Can I use namespace?
Thanks All :)
Olga
2012 Oct 25
1
[LLVMdev] How to include IR parser and optimization passes in my project
Hi,
I am a newbie in LLVM.
I am very impressed with this forum and appreciate your help and time.
I am trying to include llvm IR parser in my codebase, the way I wanna
do is generate llvm's shared object (.so) file and use it in my
project.
So far I haven't been able to generate correct .so's.
When I build a debug build with gmake (have llvm and clang in my
sandbox), I get the
2008 Aug 14
3
extending the derivs table/fools rushing in
I added "plogis" to the derivative table in the
development version of R; the patch against yesterday's
R-devel src/deriv/main.c is available at
http://www.zoology.ufl.edu/bolker/deriv_patch.txt .
I pretty much followed the framework of the other symbols;
here was my incantation
- } else if (CAR(expr) == PlogisSymbol) {
- ans = simplify(TimesSymbol,
-
2006 Mar 25
2
Wine/Interix -- The pros and cons.
I was thinking about running Wine on Interix (the POSIX layer of
Microsoft's Services for Unix). There are a few apparent unknows:
Would Wine load the .dll.so's? Since Interix uses PE for it's native
format (running on Windows, duh), Would Wine load the .dll.so's? Would
it reject them being in PE format and having the 'POSIX Layer' attribute
set, or could we hack on a
2009 Nov 11
0
Passing MULTIPLE arguments from php file to r scripts
Hi friends,
Again i don't know how to pass multiple arguments from php file to r
scripts.
Please have a look at this link ; it gives a very simple explanation of
passing variables from a PHP page to r scipts.Because i have done the same
thing.
2017 Apr 09
5
Statically linking against libc++
While considering statically linking against libc++ (and
other runtime libraries from LLVM), I rebuilt LLVM 4.0
with -DBUILD_SHARED_LIBS=OFF.
There are still some .so's in llvm/lib, and only one
of them seems to exist exclusively as a DSO (libLTO).
There's also livLLVMLTO.a, but I doubt LTO is used
after linking a binary so this just looks odd to an
uninformed LLVM outside and not
2008 Feb 27
1
Warnings generated by log2()/log10() are really large/takes a long time to display
x <- rnorm(1e6);
y <- log(x); # or logb(x) or log1p(x)
w <- warnings();
print(object.size(w));
## [1] 480
str(w);
$ NaNs produced: language log(x)
- attr(*, "dots")= list()
- attr(*, "class")= chr "warnings"
y <- log2(x); # or log10(x)
w <- warnings();
print(object.size(w));
## [1] 8000536
str(w);
## List of 1
## $ NaNs produced: language
2010 Jun 19
1
more powerful iconv
R community,
As you may know, R's iconv doesn't work well converting to and from
encodings that allow embedded nulls. For example
> iconv("foo", to="UTF-16")
Error in iconv("foo", to = "UTF-16") :
embedded nul in string: '\xff\xfef\0o\0o\0'
However, I don't believe embedded nulls are at issue here, but rather
that R's iconv
2018 May 13
0
is there any method to defer the execution of code in r?
> On May 13, 2018, at 9:24 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>
> Not when I click on that link.
>
>
Nor me, but what I get is actually
https://stackoverflow.com/questions/1174799/how-to-make-execution-pause-sleep-wait-for-x-seconds-in-r
note the number is *different* than 50314015 - the OPs posting
Seems like a bug - perhaps in SO's server?
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
Hi,all
I'm using ubuntu8.04 and I'm installing gold-plugin along with the
document of that,
After I built the binutils and LLVM with plugin enabling,and I also
replace ld with ld-new which supports plugin,I tried to compile a hello
world program by this:
llvm-gcc -use-gold-plugin a.a b.o -o hello
which is similar with the example in the document,it tells me that
libLLVMgold.so can not
2011 Jun 25
2
Shared object packaging in rpm
I whipped up a quick spec to package Zenoss' wmi client and noticed it creates a
libasync_wmi_lib.so.0 and libasync_wmi_lib.so.0.0.1 that their python script would
otherwise copy during its install routine (obviously I wrote a native rpm section for
installation).
Anyone know the naming convention associated with so's when they get compiled,
what is the .0.1 extra file used for, they are
2006 Feb 22
2
How can I see how %*% is implemented?
I would like to see how the matrix multiplication operator %*% is implemented (because I want to see which external Fortran/C routines are used). How can I do so?
Best
S??ren
2018 May 13
3
is there any method to defer the execution of code in r?
Not when I click on that link.
On May 13, 2018 7:37:50 AM PDT, Rui Barradas <ruipbarradas at sapo.pt> wrote:
>Hello,
>
>I don't understand.
>
>It *is* the same question. Same code, same words. And same 'AKSHAY M
>KULKARNI' (the OP here) and 'AKshayKulkarni' (SO).
>
>Exactly the same.
>
>Rui Barradas
>
>On 5/13/2018 2:07 PM, Jeff
2002 Aug 22
2
Winbind Auth with 2K ADS Domain Problems
Hi there,
I'm not that new in Samba, just paused a little while ;) My actual problem is, that I try to setup a FreeBSD Samba Server who should control share access with authenticating users in a win2k ads domain. The 2K Domain is setup correctly (I think so). Now I created three test shares on the samba server after setting up smbb, nmbd and winbindd. Problem now is any time I try accessing
2012 May 23
2
Expected behaviour of is.unsorted?
Hi,
I've read ?is.unsorted and searched. Have found a few items but nothing
close, yet. Is the following expected?
> is.unsorted(data.frame(1:2))
[1] FALSE
> is.unsorted(data.frame(2:1))
[1] FALSE
> is.unsorted(data.frame(1:2,3:4))
[1] TRUE
> is.unsorted(data.frame(2:1,4:3))
[1] TRUE
IIUC, is.unsorted is intended for atomic vectors only (description of x in
?is.unsorted). Indeed
2004 Nov 07
3
Calling Other (non-C or Fortran) Programs from R
Hi!
I wonder if anyone has experiences of calling other programs
from R (i.e., not C or Fortran programs).
Specifically I want to call LEM from R and execute it in a
loop to process its output in R. Thanks,
Tim Liao
2005 Jun 04
3
Automatic callback feature *66
Does anyone have a quick-n-dirty context to implement *66 automatic
callbacks?
I have a few people who like to have no call waiting on their phone (can
you really blame them?) It would be nice to have something like *66,
and also like 'Camp On', but instead of waiting something like 30
seconds, monitor the channel until it becomes available, then
immediately ring back your phone to
2019 May 01
3
anyNA() performance on vectors of POSIXct
Inside of the anyNA() function, it will use the legacy any(is.na()) code if
x is an OBJECT(). If x is a vector of POSIXct, it will be an OBJECT(), but
it is also TYPEOF(x) == REALSXP. Therefore, it will skip the faster
ITERATE_BY_REGION, which is typically 5x faster in my testing.
Is the OBJECT() condition really necessary, or could it be moved after the
switch() for the individual TYPEOF(x)
2008 Aug 22
2
Sending "..." to a C external
I'm trying to figure this out with "Writing R Extensions" but there's not a
lot of detail on this issue.
I want to write a (very simple really) C external that will be able to take
"..." as an argument.
(It's for optimizing a function that may have several parameters besides the
ones being optimized.)
I got the "showArgs" code (from R-exts) to compile and
2013 Apr 17
1
stack imbalance in max.col for non-real matrices
It's tough to reliably reproduce, but I often get stack imbalance warnings
when calling max.col() on non-real/double matrix. The code is conditionally
PROTECTing but not incrementing its nprot counter for the eventual
UNPROTECT. Pretty sure this would fix (but I haven't tested it):
Index: array.c
===================================================================
--- array.c (revision