Displaying 20 results from an estimated 700 matches similar to: "R for CGI"
2005 Jan 25
3
How to make R faster?
Dear R users;
I am using R for a project. I have some PHP forms that
pass parameters to R for calculations, and publish the
result in HTML format by CGIwithR. I'm using a Linux
machine and every things work perfectly. However, it
is too slow, it takes 5 to 10 seconds to run, and
even if I start R from the Shell it takes the same
amount of time, which is probably due to installing
packages.
2004 Nov 28
3
Correct Syntax for a Loop
I'll appreciate if some one can help me with the
following loop. This is the logic of the loop,
if we have the following data;
> x.df
x.dif
. .
. .
102 0.00
103 0.42
104 0.08
105 0.00
106 0.00
107 0.00
108 -0.16
109 -0.34
110 0.00
111 -0.17
112 -0.33
113 0.00
114 0.00
115 0.00
116 0.33
117 0.17
118 0.00
. .
. .
I'm trying to find i's where
for (i
2005 Jan 16
1
CGIwithR
Dear R users;
I'm trying to use CGIwithR on a linux machine, I have
followed the instructions on the package manual but
still it does not run,
the message that I get is as follows:
The requested URL was not found on this server
I used the example trivial, I put trivial.html under
Web directory and trivial.R in cgi-bin directory,
which itself is a subdirectory of Web directory, ( I
have
2004 Nov 30
1
xy_plot
R users;
Does anyone have a recommendation for a faster
plotting function rather than plot(x,y)?
when I use plot(x,y) for a large number of variables,
it take couple of moments to plot the graph?
Sincerely,
Sean
2004 Nov 23
2
How to extract data?
I appreciate if anyone can help me,
I have a table as follow,
> rate
DATE VALUE
1 1997-01-10 5.30
2 1997-01-17 5.30
3 1997-01-24 5.28
4 1997-01-31 5.30
5 1997-02-07 5.29
6 1997-02-14 5.26
7 1997-02-21 5.24
8 1997-02-28 5.26
9 1997-03-07 5.30
10 1997-03-14 5.30
. ...... ...
. ...... ...
. ...... ...
I want to extract the DATE(s) on
2006 Jan 11
3
natural sorting
It would be nifty to incorporate this into R or into an R package:
http://sourcefrog.net/projects/natsort/
2009 Jun 12
1
Rprof loses all system() time
Rprof seems to ignore all time spent inside system() calls. E.g.,
this simple example actually takes about 10 seconds, but Rprof thinks
the total time is only 0.12 seconds:
> Rprof("sleep-system.out") ; system.time(system(command="sleep 10")) ; Rprof(NULL)
user system elapsed
0.000 0.004 10.015
> summaryRprof("sleep-system.out")$by.total
2014 Apr 24
2
palette() can hang and fail due to X11
For many years, when my R process starts up I've been automatically
setting my preferred default plot colors, basically like so:
my.colors <-
c("black" ,"red" ,"gold" ,"sky blue" ,"green" ,"blue" ,"orange"
,"grey" ,"hot pink" ,"brown" ,"sea green" ,"cyan"
2008 Sep 05
2
typo in cov()? var() fails on NA in R 2.7.2 but not R 2.6.1
I recently started using R 2.7.2, and noticed a surprising change in
the behavior of var() on NA data:
R 2.6.1 (Patched), 2007-11-26, svn.rev 43541, x86_64-unknown-linux-gnu:
> stdev(rep(NA,3), na.rm=F)
[1] NA
> stdev(rep(NA,3), na.rm=T)
[1] NA
> var(rep(NA,3), na.rm=T, use="complete.obs")
[1] NA
R 2.7.2 (Patched), 2008-09-02, svn.rev 46491,
2013 Sep 30
1
how to interpose my own "[" function?
I want to create my own "[" function (for use on vectors, matrices,
arrays, etc.), which calls the stock R "[", does some additional work,
and then finally returns the modified result.
But, how do I properly call the stock R "[" function? It takes a
varying number of positional arguments, and its R-level closure is
just: .Primitive("[") It's
2007 Oct 24
2
R trunk (2.7) build fails with -fpic, needs -fPIC (PR#10372)
On Linux x86-64 (Ubuntu 6.06), the latest R sources from the
Subversion trunk fail to build with the following "recompile with
-fPIC" error:
$ ./configure --with-x=yes --prefix=$inst_dir --enable-R-shlib --with-tcltk=/usr/lib/tcl8.4 --with-tcl-config=/usr/lib/tcl8.4/tclConfig.sh
$ make
/usr/bin/ld: ../appl/approx.o: relocation R_X86_64_32 against `a local symbol' can not be
2014 Apr 21
1
read.table() code fails outside of the utils package
One of the great things about R is how readable and re-usable much of
its own implementation is. If an R function doesn't do quite what you
want but is close, it is usually very easy to read its code and start
adapting that as the base for a modified version.
In the 2.x versions of R, that was the case with read.table(). It was
easy to experiment with its source code, as it all worked just
2010 Oct 27
2
must .Call C functions return SEXP?
For using R's .Call interface to C functions, all the examples I've
seen have the C function return type SEXP. Why? What does R actually
do with this return type? What happens if I *don't* return a SEXP?
Reason I ask, is I've written some R code which allocates two long
lists, and then calls a C function with .Call. My C code writes to
those two pre-allocated lists, thus, I
2009 Aug 27
3
ARM v7/Linux Port/cross-compile?
Hi,
Has anyone succeeded in cross-compiling R to Linux on an ARM CPU? If so, can you share a little about your toolchain & build process?
Thanks!
[[alternative HTML version deleted]]
2005 Oct 09
3
[ subscripting sometimes loses names (PR#8192)
--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
R, like recent versions of S-Plus, sometimes - but not always - loses
names when subscripting objects with "[". (Earlier versions of S and
S-Plus had the correct, name-preserving behavior.) This seems bad, it
would be better to remove names only by explicit request, not as an
accidental
2009 Jul 27
1
how to change FPU control word?
Dear developers,
is there (already) a platform-independent way for (temporarily!)
changing the fpu control word?
More precisely: I am looking for functions (accessible from C code in R
packages) which read and write the fpu control word on x86 cpus (and
cause no harm otherwise), because I need to (temporarily) turn off
internal 80-bit precision for some algorithms relying on 64-bit IEEE
2006 Jun 11
2
Old (really old) programs under CentOS.
Ok, I have a small dilemma, and I'm hoping someone here has had to do this before.
I have at a site (not PARI) a server running some mission critical software that was written in 1997 for libc5, under AOLserver 2.3.? No, source code is not available for that version of AOLserver (it wasn't open-sourced until version 3.0, and the API changed rather dramatically at that point), not that it
2007 Feb 05
1
How to customize the list of exported functions in a shared library
Dear R users,
I am writing binding from C library to R.
I use R 2.4.1, windows XP, and MinGW.
commands
set PKG_CPPFLAGS="-I../sources" "-I."
set PKG_LIBS="-Lc:/mingw/lib" -lfl -liberty
set DEBUG=T
R CMD SHLIB -d --output=Rsnns.dll [ list of all C sources]
produce the DLL having all defined functions in the export list.
This doesn't satisfy me, as I would
2006 Oct 27
1
What to do with a inconsistency in rank() that's in S+ and R ever since?
Dear R-developers,
I just realized that rank() behaves inconsistent if combining one of na.last in {TRUE|FALSE} with a ties.method in {"average"|"random"|"max"|"min"}.
The documentation suggests that e.g. with na.last=TRUE NAs are treated like the last (=highest) value, which obviously is not the case:
> rank(c(1,2,2,NA,NA), na.last = TRUE, ties.method
2010 Jun 02
2
R and multi cpu ATLAS
Dirk suggested I move this thread over here. I am trying to get a
multithreaded (multi CPU) version of ATLAS working with R, and have
been unable, thus far, to get it working. Has anyone gotten an
multithreaded version of ATLAS working on Debian (64 bit)? I've tried
this:
apt-get source atlas -t unstable
cd atlas-3.8.3
DEFAULTS=n fakeroot debian/rules custom
but it is APPEARING to only