Displaying 20 results from an estimated 1300 matches similar to: "Simple C-R interface, SEXP and other declarations"
2004 Apr 06
1
A question about embedded R
Hello everyone,
I met a strange problem when I call R expression from C++, here is the
details:
I edited a function eval_R_command();
double eval_R_command(const char *funcName)
{
SEXP exp,e;
ParseStatus status = PARSE_OK;
int i,n;
double val;
PROTECT(exp=NEW_CHARACTER(1));
SET_STRING_ELT(exp, 0, COPY_TO_USER_STRING(funcName));
PROTECT(e = R_ParseVector(exp, 1,
2008 Aug 30
0
R embedded reinitialization error (PR#12644)
Full_Name: R Embedder
Version: 2.7.2
OS: win XP SP 2
Submission from: (NULL) (83.25.35.249)
I'm having problems using embedded R. I try to adapt examples from
"tests/Embedding/".
Everything works fine except when I try to reinitialize R for the second time
in the same program. I need to reinitialize correctly because my code
is some kind of .dll plugin to an external application.
2018 Jun 11
0
Problem with named.service
Good morning!
After I changed some permissions and owners of some files where Rowland told me, I have the next escenary:
[root at proxy ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-06-11 08:54:10 AST; 12min ago
2009 Jun 26
1
bug in Rf_PrintValue ?
I'm very green with R, so maybe this is not a bug, but it looks like one to
me. The following program segfaults at the second call to Rf_PrintValue().
To failure depends on the value of the y-string. E.g., if I change it from
"coverage" to, say, "COVERAGE", the segfault does not occur.
/* bug.c */
#include <stdio.h>
#include <Rinternals.h>
#include
2005 Apr 18
2
UnauthorizedAccessException in R(D)COM
Dear friends,
I am trying to create a web application to produce some
statistical result using R. In order to avoid high CPU usage of web
server caused by R, I have to create an ASP.NET web service in another
server to involve R.
But I am facing the unauthorizedAccessException when I call the
web service, even I have assigned access and launch permission to everyone
using
2018 Jun 11
0
Problem with named.service
I forgot to say that I updated Centos from 7.4 to 7.5, and I updated samba4 to the new version.
This Would be a problem of records of something like that.
José Fermín Francisco Ferreras Registered User #579535 (LinuxCounter.net)
El lunes, 11 de junio de 2018 9:45:03 a. m. GMT-4, Fermin Francisco <abcddo at yahoo.com> escribió:
Sorry, the real e-mail is this:
[root at pc ~]#
2009 Jun 08
0
How to explore R internals through gdb?
Hi everyone.
I'm trying to learn my way around the R internals. I've gone pretty much as
far as I can go with the information given in Writing R Extensions and R
Internals, but I still have a lot of questions, too many in fact to post
them to the r-devel list. But I think I could answer many of these if I
could just step through R's execution during some basic operations.
What
1998 Dec 01
2
help files for libraries that aren't in the defaults library tree
Hello,
I created a library for a bunch of functions that I use frequently
so that I dont have to carry duplicate copies around to wherever I fire
up an R sesssion. However, I have problems locating the help files
for those functions. Here are some details.
I created the library "myR" and installed this in /home/royle/R
using:
R INSTALL -l /home/royle/R /home/royle/Rpackages/myR
1998 Dec 01
2
help files for libraries that aren't in the defaults library tree
Hello,
I created a library for a bunch of functions that I use frequently
so that I dont have to carry duplicate copies around to wherever I fire
up an R sesssion. However, I have problems locating the help files
for those functions. Here are some details.
I created the library "myR" and installed this in /home/royle/R
using:
R INSTALL -l /home/royle/R /home/royle/Rpackages/myR
2010 Jul 13
1
Building a custom Windows installer
Dear r-devel list members,
It's been several years since I last built a custom Windows installer for R,
and despite my notes and the instructions in Sections 3.1.7 and D.4 of the R
Installation and Administration Manual, I've run into a problem, receiving
the following error message:
----------- snip -----------
C:\R\src\R-2.11.1\src\gnuwin32\installer>make myR
2009 Apr 15
1
Compiling Fortran Subroutines as R Shared Objects on Mac OS-X
Hello,
I am trying to compile some F77 subroutines as shared objects for R on my Mac.
--> Mac OS-X Version 10.4.11 (Tiger Intel Mac)
I have done this (successfully) before on Sun Solaris and Linux Fedora systems using the following command.
> R CMD SHLIB myfile.f
I have g77 installed from this page.
http://hpc.sourceforge.net/
I am using R 2.8.1, and I have installed all 4 additional
2018 Jun 11
2
Problem with named.service
Sorry, the real e-mail is this:
[root at pc ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-06-11 08:54:10 AST; 12min ago
Process: 1276 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited,
2012 Apr 10
1
Building customized R for Windows installer using 'make myR'
I am attempting to build a customized R installer on Windows, using the Inno
Setup installer.
I am following the instructions in Section 3.1.8 of the R Installation and
Administration Manual ("Building the Inno Setup installer"), which includes
the following passage:
An alternative way to customize the installer starting with a binary
distribution is to first
make a full
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:
2008 Mar 30
2
tests Rin Rout
Hi the list,
Some rumour (!) say that is it possible to prepare some tests for
checking our code using .Rin and .Rout. It seems to be a very good
practice, but I did not manage to find information on it.
So does someone know how it works ? What are we suppose to write in Rin ?
More precisely :
- I have a package myPack.r in directories ~/myR/myPack/R/
- I create the directory
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
2009 Nov 30
1
Bug in R evaluating a huge instruction (PR#14096)
Hello,
I do not know if i am facing a bug or a mistake (and if it is a bug i do =
not know in which category I can put it on the bug tracker), so I post=20
my message here.
I am trying to use the Morris function from the sensitivity package (but =
that is not the problem). I created a (big) instruction that should=20
generate a morris object in which there is a data.frame i am interested=20
1999 Apr 29
1
R-0.64.0 installation on SGI IRIX 6.5 machine
Hi,
I am trying to install R-0.64.0 version on SGI machine running
IRIX 6.5.
Machine details:
319 <mind.krasnow.gmu.edu:R-0.63.3> uname -a
IRIX64 mind 6.5 07271714 IP27
Configure script runs fine and the output at the end of configure is:
R is now configured for mips-sgi-irix6.5
Source directory: /usr/local/R-0.64.0
Installation directory: /usr/local
C compiler:
2023 Aug 22
2
Is r2u at 3.4.1? [branch about handling package collisions under Ubuntu/Debian]
This is definitely tangential to the list: I'm on Ubuntu (22.04.2 LTS)
not Debian and I'm sure this is about issues in the Ubuntu package
management
on my machine, R is only revealing them.
The original subject line came from me wondering if my going over to the r2u
repository would solve the problem.? However, as I think Dirk said, that's
only really likely to be answered by trying
2010 Apr 13
2
sensitivity analysis, input factors
Hi,
I'm trying to conduct sensitivity analysis in R using the 'sensitivity' package. Although the description of functions seem straightforward, I can?t succeed. The definition of input factors can be the problem.
library(sensitivity)
#A simple model with 4 input factor to test the morris function:
model01=function(a1,a2,a3,a4)
{
Z<-numeric(10)
Z[1]<-runif(1)