Displaying 20 results from an estimated 4000 matches similar to: "Load a package without installing it"
2009 Sep 07
2
Andrews plot
Dear all
Colleague of mine ask me if R is capable of Andrews plot like
andrewsplot(x) in Matlab.
Quick search did not reveal anything but before I start to write any
routine I would like to ask this ingenious audience if there is any
implementation of Andrews plots somewhere.
I know about parallel coordinate plots in lattice (although I do not use
them as I am not sure what the plot tells
2009 Sep 04
5
< 0 x 0 matrix >
Hi,
Does anybody know, what is going on here?
> diag(sqrt(1))
[,1]
[1,] 1
> diag(sqrt(0.3333))
<0 x 0 matrix>
> sqrt(1)
[1] 1
> sqrt(0.3333)
[1] 0.5773214
BR, Markku Karhunen
researcher
University of Helsinki
2009 Sep 03
2
Calling R from a Perl script: much slower?
Hello list,
I use R for microarray analysis.
One procedure I use takes a large matrix, and loops through it looking
for specific rows, does an operation with them, and outputs a result
(single row) as a row of another matrix. The loop goes on about 25000
times.
When I run the loop directly from the R console itself, it takes about
3 minutes in my computer. I'm ok with that.
Now,
2009 Sep 02
1
How to ship R scripts with R packages ?
Hello,
(This is a remix of this previous thread:
https://stat.ethz.ch/pipermail/r-devel/2009-August/054264.html , but
with a concrete example)
I am developing some packages that contain scripts (for Rscript) and
would like to know what is the best/recommended way to ship these scripts.
An example is the "ant" package (R capable version of apache ant, see
http://tr.im/xHLs). The
2009 Sep 08
0
R meets apache ant
Hello,
This is to announce the first release of the "ant" R package, which has
been pushed to CRAN yesterday, and should reach your mirror and your
platform soon.
The package provides an R-aware version of the famous build tool from
the apache project. http://ant.apache.org/
The package ships an R script that can be used to invoke ant with enough
plumbing so that it can use R
2009 Sep 08
0
R meets apache ant
Hello,
This is to announce the first release of the "ant" R package, which has
been pushed to CRAN yesterday, and should reach your mirror and your
platform soon.
The package provides an R-aware version of the famous build tool from
the apache project. http://ant.apache.org/
The package ships an R script that can be used to invoke ant with enough
plumbing so that it can use R
2009 Sep 03
1
Rscript and default packages
Hi,
Is is possible to embed inside an R script, the name of the default
packages to be loaded when the script is invoked with Rscript.
I know about the --default-packages argument, but I was wondering if
there was a mechanism to embed this information within the script itself
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|-
2009 Sep 07
0
R CMD INSTALL --clean
Hello,
I am using "R CMD INSTALL --clean" so that when my package is finished
installed, a cleanup script is executed to post-process the generated
html index file and add some more information. The cleanup (or
cleanup.win script eventually calls the R code below)
This works well, but it depends on the --clean switch. Is there another
way, or can I force --clean (for example from
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
2005 Jan 28
1
R for CGI
Dear R Users;
Perl is the common language to write CGI scripts which
handle Forms. My question is that can R be as fast as
perl
to do the same job(with using CGIwithR package). Is it
an optimal solution to connect R directly to a
commercial HTML webpages,
Sincerely,
Sean