similar to: Calling R-Functions from C ?

Displaying 20 results from an estimated 4000 matches similar to: "Calling R-Functions from C ?"

2009 Jun 06
1
Qs on calling R from C
Consider the following simple C program: /*** hello_r.c ***/ #include <Rinternals.h> SEXP hello() { return mkString("Hello, world!\n"); } int main(void) { SEXP x = hello(); return x == NULL; /* i.e. 0 on success */ } This program segfaults: % myR/bin/R CMD LINK gcc -I./R-2.9.0/src/include -L./myR/lib64/R/lib -lR hello_r.c -o hello_r > /dev/null % hello_r zsh:
2000 Aug 31
2
Problem with R INSTALL locfit on DEC alphaev56-dec-osf4.0d
Dear all, usually I work under linux, but I tried to install R-1.1.1 on our alpha's which worked well. However, installation of the locfit package produced the following warning: ---------%<---------------- Installing package `locfit' ... libs /vol/bin/gcc -I/vol/math/R/include -I/usr/local/include -mieee -g -O2 -c S_e nter.c -o S_enter.o S_enter.c: In function `basis':
1997 Jun 03
1
R-alpha: unif_rand() again
Just out of curiosity, here is a question that might be embarrasingly stupid. Hmm ... What I need is to call runif() (more precisely, `runif(1, 0, 1)') from inside a C function. Is this possible using call_S? If so, how? -k =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
1999 Apr 07
1
library
I also have several packages in my RW0633 in Windoze and I would like to keep them in one place when I update the R system. Brian say to modify Rprofile to ..lib.loc <- c("c:/MyR/library",.Library) now Rprofile has a line like .lib.loc <- unique(c(unlist(strsplit(getenv("RLIBS"),":")),.Library) Sorry to be dense but where should I put the
1998 Jun 06
1
R-beta: makefile command line for recreating dynload demo dll
Hi, I have gnuwin32 (b18) and the rw0613b.zip version of R. With regards to (re)making the dynload dll demo given (zero.dll) could anyone tell me what the command line for the makefile should be. ie, make -f Makefile.in ...? Thanks for any help -- Douglas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2015 Jul 31
1
samba-4.1.19: resolving local unix group failes when there exists a local unix user with same name
Hi, after upgrading samba from 4.1.17 to 4.1.19 on OpenSuSE 13.2, any shares offered by this machine can nolonger be accessed, when these shares contain an entry "force group" which specifies a local unix group and when there exists a unix user with the same name. Here's an excerpt from smb.conf: [FactWork] comment = FactWork-Downloadportal path =
2003 Nov 26
2
creating graphs in BATCH mode
Hi a short question is there a way to generate jpeg's etc. in BATCH mode ? The following example does not work in BATCH: I have a file called Rgraph.in: *rsy at puffin*[15:11][~][57]> cat Rgraph.in jpeg("/tmp/my.jpg") hist(runif(10000)) dev.off() *rsy at puffin*[15:11][~][58]> *rsy at puffin*[15:09][~][55]> R BATCH Rgraph.in OUT 4.120u 0.160s 0:05.17 82.7% 0+0k
2002 May 13
1
Adding Printer Drivers for existing Printers (Win2000, WinNT x86)
Hi List! I've got a problem that I've read about on the web several times now, regarding the uploading of printer drivers to the samba [print$] share. When I try to set the printer driver for an existing printer (HP LaserJet 6L enabled with CUPS) the W2K wizard let me select the driver *.inf file but when finishing I get the well known error message: "Unable to install Intel,
2004 Jan 23
2
3.0.2rc1, LDAP, Solaris 9 and secondary group problem - Bug 395?
Hi, we have tested Samba 3.0.0 and 3.0.1 with LDAP-Support (--with-ldap) on Solaris 8 and it worked fine. The machine authenticates against an OpenLDAP server. Patch 108993-23 is applied and we use native Sun LDAP client modules. On Solaris 9 we ran into problems with secondary groups. Users cannot access files if the rights are based on a secondary group and if this information is stored on
2003 Nov 20
8
tunnel iax via gnophone with ssh?
Hey all...I'm trying to use gnophone to connect to my asterisk box behind my firewall..I thought I could just setup a tunnel with something like ssh host.com -L5036:asteriskserver:5036 and just change my gnophone to connect to localhost:5036 but I never see anything happen on the asterisk server. I'm even trying this on the same network just in case there is something funky with NAT.
1999 Jul 29
0
call_R
I would like to use the call_R mechanism. Unfortunately I don't fully understand what the arguments are from the example in "R-0.64.2/demos/dynload". Could anybody explain me how I have to define the arguments, e.g., I want to call R with 5 doubles (or double[5]) and func does not return a value (is that possible or is it necessary to return at least a dummy?). This is from the
2010 Dec 14
7
DO NOT REPLY [Bug 7865] New: files or dirs with more than 16 ACLs are not rsynced correctly
https://bugzilla.samba.org/show_bug.cgi?id=7865 Summary: files or dirs with more than 16 ACLs are not rsynced correctly Product: rsync Version: 3.0.7 Platform: IA64 OS/Version: HP-UX Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned at samba.org
2007 Apr 24
3
Migrating DomUs from file VBD to LVM Backend
Hello, what would be the easiest and fastest way to migrate a file based DomU to a LVM based DomU. Given that the file contains a partition table + partitions. I tried with an dummy approach: dd if=/path/to/file.img of=/dev/volumegroup/logical-volume. That gives me a logical volume that xm create refuses to use.... Reinhard _______________________________________________ Xen-users mailing
2011 Aug 17
2
Segmentation fault in dovecot director lmtp service
Hi, the lmtp service of our dovecot director installation quits with a segmentation fault if a lot of mails are simultaneously delivered. For example if the postfix mailqueue is filled (for whatever reason) and postqueue -f is run the lmtp service quits with a segmentation fault: Program terminated with signal 11, Segmentation fault. #0? o_stream_cork (stream=0x0)
2004 Feb 05
1
Solaris 9 and secondary group info from LDAP
Hi, we are running several test installations of Samba 3 on Solaris 8 and Solaris 9. On Solaris 9, there is a strange behaviour in terms of getting secondary group information from LDAP. With later revisions of patch 112960, only /etc/group is interpreted, but there is no query on the LDAP server for (Unix-) group information. Here is a short overview about our results: common configuration:
2015 Mar 20
2
Access to shares is denied after upgrading from 3.6.3 (openSUSE 12.1) to 4.1.17 (openSUSE 13.2)
Hi Rowland, Am 20.03.2015 um 12:45 schrieb Rowland Penny: > Try replacing the global part of your smb.conf with this: > > [global] > netbios name = PLATON > workgroup = FEE > security = ADS > realm = FEE.DE > dedicated keytab file = /etc/krb5.keytab > kerberos method = secrets and keytab > server string = Web- und
2006 Feb 04
2
OpenSSH 4.3P1: incorrect wtmpx entries
Hi, I just installed OpenSSH 4.3p1 on our Solaris 8 machines and 'last' now shows wtmpx entries for ssh logins like zierke pts/4 Thu Jan 1 01:00 still logged in zierke pts/3 Thu Jan 1 01:00 - 10:56 (13183+09: instead of e.g. zierke pts/3 rzdspc10.informa Sat Feb 4 10:54 - 10:54 (00:00) zierke pts/2
2015 Mar 20
2
Access to shares is denied after upgrading from 3.6.3 (openSUSE 12.1) to 4.1.17 (openSUSE 13.2)
Hi Rowland, Am 20.03.2015 um 10:33 schrieb Rowland Penny: >>> ---8<---8<---8<---8<---8<---8<--- smb.conf >>> ---8<---8<---8<---8<---8<---8<--- >>> >>> # smb.conf is the main Samba configuration file. You find a full >>> commented >>> # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
2011 Dec 16
1
mgcv 1.7-12 crashes R
Dear community, I encountered a very disturbing phenomenon today: When I try to fit any gam() with mgcv R aborts. I could not find any post regarding this in google, which mades in even more strange. I am using the latest Ubuntu, latest R and latest mgcv everything up to date. The crash occured too with the last mgcv 1.7-11. This is the output from the R shell: <pre> R version 2.14.0
1999 Jan 29
1
R - API ?
HI, I would like to use R in my own main-Program. Is this possible ? If yes where I can find an documentation about this feature ? If I cannot call an R-API Function from my C-Program is it possible to run R in batch-mode like Splus ? All my question belongs to R running under Windows. Thanks for any help. I know that I can dyn.load any C/Fortran Code from R but this is not what I want