Displaying 20 results from an estimated 2000 matches similar to: "C++ - R - example"
2003 Apr 17
2
BATCH and tcltk
Hi R-hackers
I try to write a batch (in Windows, i have to use!) with
Rcmd BATCH D:\Test.R D:\Test.Rout and
Rterm.exe --no-restore --no-save < D:\Test.R > D:\Test.Rout.
In my file Test.R are any tk-codelines (like: Window1 <- tktoplevel(); ... tkbutton...).
It works not interactifly, what is written in Rcmd BATCH --help.
Exist there a way to do it all the same?
Please help...
2003 May 13
3
Delete files from R
Hi,
I have a file: d:\foo.txt and want to delete this.
I tried:
system("del d:/foo.txt") works not
system("notepad d:/foo.txt") works
Is it possible that I can't delete files or do I have misunderstood something?
(del is a DOS-command. The "string works" under DOS "\")
Thanks a lot
Thomas
-----
Windows XP
R 1.6.2 (update!, I know)
2003 Apr 25
1
Rcmd vs. Rterm.exe
Hi r-hackers,
What exactly is the difference in call r from a batch between this two ways:
Rterm.exe ...
Rcmd BATCH ... (I have to install perl first, I know)
I haven't found any documentation about the difference (readme, FAQs, ...).
I use rterm.exe, but is there a benefit in using rcmd?
Can you explain me that or give me a link?
Thanks
Thomas
Thomas Untern?hrer
2003 Apr 29
2
C algorithm to call R?
Does anyone have a C or C++ algorithm to call "R"? Thank you for your help.
2003 Sep 23
1
AW: Rank and extract data from a series
Hi,
>I would like to rank a time-series of data, extract the top ten data items from this series, determine the
>corresponding row numbers for each value in the sample, and take a mean of these *row numbers* (not the data).
>I would like to do this in R, rather than pre-process the data on the UNIX command line if possible, as I need to >calculate other statistics for the series.
2004 Nov 26
1
Cross-compiling R for Windows on linux
I tried to cross-compile the newest release 2.0.1 on a linux machine, but i
always got an error at the following stage
DHAVE_CONFIG_H -DR_DLL_BUILD -c dynload.c -o dynload.o
dynload.c: In function `R_loadLibrary':
dynload.c:94: warning: implicit declaration of function `_controlfp'
dynload.c:94: error: `_MCW_IC' undeclared (first use in this function)
dynload.c:94: error: (Each
2005 Apr 14
5
cross compiling R for Windows under Linux
Hi
I tried to cross compile R under Linux but get an
error.
i586-mingw32-gcc -isystem
/home/schouwl/unpack/mingw/include -O2 -Wall -pedantic
-I../include -I. -DHAVE_CONFIG_H -DR_DLL_BUILD -c
dynload.c -o dynload.o
dynload.c: In function `R_loadLibrary':
dynload.c:94: warning: implicit declaration of
function `_controlfp'
dynload.c:94: error: `_MCW_IC' undeclared (first use
in this
2015 Jan 02
1
Help in building R with minGW
Dear R users,
I would need some help in building R using minGW in windows 8.1. After
using the command *configure *(./configure --enable-R-shlib
--with-readline=no --with-x=no), I use the command *make. *This results in
the following error:
[...]
make[2]: Leaving directory `/home/Edoardo/r-3.1.2/src/nmath'
make[2]: Entering directory `/home/Edoardo/r-3.1.2/src/unix'
make[3]: Entering
2003 Aug 25
2
Save graph as .wmf
Hi,
Is there no function in R similar to jpeg(...) or postscript(...) for windows meta files?
The function savePlot(...) is not really what I need.
I'd like to save the plot on my disk without open a new plot window.
And I don't want to save it on my disk and convert it from a *.* to .wmf (there are too many).
Thanks for any help
Thomas
2003 Aug 05
1
A little problem
Hi,
Does anybody knows a easy way (without for-loops, maybe with something like match)
to solve this problem:
x <- rep(1,3)
y <- c(0,1,0,1,0,1,1,1,0,0,0,0,1,0)
if (x is a part of y){
find out where it is and
do something
}
Thanks a lot
Thomas
2003 Sep 06
1
split.screen problem and segments in figure margin
hi,
two questions...
1. what happens with points()?
after the split.screen function points() start not at x = 1 (at x = - something)
graphics.off()
x11()
split.screen(c(3, 1))
split.screen(c(2, 1), 1)
screen(3)
plot(dat, type = "n")
screen(4)
plot(dat, type = "n")
screen(2)
plot(dat, type = "n")
dat <- rnorm(1000)
for (i in 1:length(dat)){
screen(3)
2004 Jul 07
1
AW: boxplot a list of objects
One possibility ist
boxplot(sapply(ListOfNames, get, env = .GlobalEnv))
Hope that this helps
Thomas
-----Urspr??ngliche Nachricht-----
Von: Lefebure Tristan [mailto:Tristan.Lefebure at univ-lyon1.fr]
Gesendet: Mittwoch, 7. Juli 2004 10:34
An: r-help at stat.math.ethz.ch
Betreff: [R] boxplot a list of objects
Hi list,
#Imagine we have vectors of different length (in practice 100 vectors):
2006 May 08
2
problems compiling under solaris
Hi!
I've been trying to compile R with gcc version 3.4.2 on a box running Solaris 2.6.
I keep on hitting this error during the compile:
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -std=gnu99 -c dynload.c -o dynload.o
In file included from dynload.c:33:
../../src/include/Defn.h:943: error: parse error before "mbstate_t"
make[3]: ***
2008 Sep 16
2
odesolve dynload example
Hello R Developers,
This is my first foray into using c-code with R, so please forgive my
foolishness.
I had a look at the archives and did not find anything on this, so
hopefully I am not doubling up.
I have tried to use R cmd to create an object file from the odesolve
dynload example.
I am using windows and have just installed rtools, and have the latest
version of stable R (2..7.2).
This is
2003 Aug 11
1
Memory-problem?
Hi,
I have a big problem with my R-script. It seems to be a memory problem, but I'm not sure.
My script:
test.window <- function(stat, some arguments){
several ifs and ifs in ifs (if(){...if(){...}})
}
...
for (ii in 1 : length(data)){ ## data is a vector of length 2500
stat <- test.window( some arguments )
## there are 15 arguments including a "big" list
2000 Feb 29
1
R-1.0.0 make error
I'm getting this error when I try to make after my configure, any
solutions? Thanks in advance...
make[2]: Entering directory `/export/trichodon2/R/R-1.0.0/demos/dynload'
/usr/local/bin/make zero.so
make[3]: Entering directory `/export/trichodon2/R/R-1.0.0/demos/dynload'
/export/trichodon2/R/R-0.99.0a/bin/SHLIB:
/export/trichodon2/R/R-0.99.0a/bin/SHLIB: cannot open
make[3]: ***
2019 Nov 07
1
yum install fails - itertoolsmodule.so
Hi Paddy,
I was suspecting the same, and from the output below I think you're right. However, I was hoping I could just repair this problem for now, and worry about replacing the HDD later. I need to resume some services that also seem to generate this same error.
Gary
[root at zeppo services]# ll /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so
-rwxr-xr-x. 1 root root 61976 Sep 15
2016 Nov 22
2
shared libraries: missing soname
Dirk,
Dirk Eddelbuettel <edd at debian.org> writes:
> On 20 November 2016 at 21:49, Joseph Mingrone wrote:
> | Hello Dirk,
> |
> | Dirk Eddelbuettel <edd at debian.org> writes:
> |
> | > On 20 November 2016 at 19:28, Joseph Mingrone wrote:
> | > | Hello,
> | > |
> | > | R's shared libraries are linked without setting the soname. This is
2013 Apr 02
1
Rpy2 and Mac OS X 10.8.3
I am having a strange problem. I have been using python + rpy2 on my Mac
for quite sometime now. I recently upgraded to OS X 10.8 from 10.6 and
that's when the problem began.
Now, when I try to load some R packages (like zoo) using robjects.r, python
crashes with seg fault 11. Here's an example below:
>> import rpy2.robjects as ro
>> ro.r(''' library(zoo)
2013 Apr 02
1
Rpy2 and Mac OS X 10.8.3
I am having a strange problem. I have been using python + rpy2 on my Mac
for quite sometime now. I recently upgraded to OS X 10.8 from 10.6 and
that's when the problem began.
Now, when I try to load some R packages (like zoo) using robjects.r, python
crashes with seg fault 11. Here's an example below:
>> import rpy2.robjects as ro
>> ro.r(''' library(zoo)