Displaying 20 results from an estimated 10000 matches similar to: "--no-save and --save toggle from inside R? + BATCH stderr"
2006 Apr 03
4
argv[0] --- again
dear R group: I have the probably fairly common problem that I would
like to have one code.R file do different things if it is invoked from
a symbolic link, which should be easy to uncover.
$ ln -s code.R code-0.R
$ ln -s code.R code-1.R
$ R CMD BATCH code-1.R
what needs to be in code-1.R to put code-1.r into a character vector?
help appreciated.
regards, /ivo welch
PS : I read
2015 Oct 29
2
R CMD BATCH vs R CMD batch
Deepayan Sarkar <deepayan.sarkar at gmail.com> writes:
> On Thu, Oct 29, 2015 at 2:09 PM, Rainer M Krug <Rainer at krugs.de> wrote:
>> Dirk Eddelbuettel <edd at debian.org> writes:
>>
>>> On 28 October 2015 at 21:39, Marius Hofert wrote:
>>> | Out of laziness I just used "R CMD batch" instead of "R CMD BATCH". I
>>> |
2002 Mar 28
3
how to run .r batch file
I am completely new to R, but have some bg in cs and stat.
since R has an interactive programming environment, I thought I could write my command in a file and run it in batch mode in the Rgui. but it didnt work. I checked the doc. it said Rcmd BATCH inputfile. it didnt work either.
Can someone help? thank you. thank you.
also if you can shed some light on passing command line arguements (like
2012 Mar 30
4
list assignment syntax?
Dear R wizards: is there a clean way to assign to elements in a list?
what I would like to do, in pseudo R+perl notation is
f <- function(a,b) list(a+b,a-b)
(c,d) <- f(1,2)
and have c be assigned 1+2 and d be assigned 1-2. right now, I use the clunky
x <- f(1,2)
c <- x[[1]]
d <- x[[2]]
rm(x)
which seems awful. is there a nicer syntax?
regards, /iaw
----
Ivo Welch
2007 Jul 17
2
Combine R2HTML and Rcmd BATCH?
Hi All,
I have an R script that spawns output in the form of an HTML page. This
is done by the R2HTML package.
Now I want to run the same script using Rcmd BATCH. However, it seems
that it is not possible to use R2HTML in this case.
My script ends with this error message:
#########################
Error in dev.print(png, file = AbsGraphFileName, width = Width, height =
Height, :
can only
2006 Mar 14
2
R CMD BATCH w/o inputs?
dear R wizards---I must be standing on the line (German
translation---this must be obvious). This is probably embarrassingly
obvious to anyone, except to me right now. maybe it is late.
I would like to run my R code in batch, but not see the R compilations
and my R source code---I just want to see the same output that I would
see if I ran source("i.R"), but direct it to a file. I can
2008 Jun 04
1
"ignoring environment value of R_HOME" error when installing packages
I am troubled by what appears to be a glitch in the current
distribution, or in
its installation on our system. I've traced it, and found a work-
around. Is
this normal? Is there a cleaner solution?
The problem:
During a package installation, the warning message "WARNING: ignoring
environment value of R_HOME" from line 31 of <R_HOME>/bin/R is
accidentally
spliced into the
2010 Jun 09
2
Question on trying to build R 2.11.1 on Tru64(aka OSF1)
First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon
of choice for the faculty wishing to use R, then ran ./configure as before.
The ./configure output line
using as R_SHELL for scripts ... /usr/local/bin/bash
would seem to indicate that the R_SHELL environment variable was recognized
and acknowledged. However, I got the same build error:
gnumake[2]: Entering
2002 Jan 30
5
1.4.1 R CMD check broken?
I am not sure if this is already known. I checked BUGS and found some
references to similar behavior when R_HOME is set?
Here is what I get:
(1) Fresh build of 1.4.1 under Linux/RH-7.2. All tests pass.
> R CMD check ctest
* checking for working latex ... OK
* using log directory `/home/andyj/stat/R-1.4.1/library/ctest.Rcheck'
Installing *source* package `ctest'
2002 Sep 05
1
Trouble installing packages in Gentoo Linux
I'm trying to install packages in Gentoo Linux using install.packages().
The packages download fine, but when it comes to installation, I get
this message:
WARNING: ignoring environment value of R_HOME
/var/tmp/portage/R-1.5.1/image//usr/lib/R/bin/Rcmd:
/var/tmp/portage/R-1.5.1/image//usr/lib/R/bin/Rcmd: No such file or
directory
I have the R_HOME set to the correct value (/usr/lib/R), but I
2007 Apr 20
2
cat() to STDERR
Dear R wizards---I read Brian Ripley's post from 2004 which said that
it was not possible to print to STDERR. Alas, I have more modest
needs. I was wondering if it was possible to just send a string to
STDERR with cat() while in CMD BATCH mode.
Is it not possible to open STDERR in R? (Or does R use STDERR for
itself and redirect it into the output stream?)
This would be on a standard Unix
2001 Jan 05
2
running Rcmd INSTALL, again
Ok, one last try. R1.2.0, WinNT 4.0:
[R is installed in: R_HOME=D:\Programme\R\rw1020]
Can anyone give a hint what the following error message (when running Rcmd
INSTALL) means and what to do about it?
cd D:\Programme\R\rw1020\src\library
D:\Programme\R\rw1020\bin\rcmd install testfunctions
make: Entering directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32'
dlltool -k --as as --dllname
2002 May 02
3
Building own packages on Windows 2000!
Hi!
I encountered some things trying to build own packages under Windows
2000 for which i found no answer in the documentation.
First.
1. I do not found the rcmd.exe in the bin directory of R_HOME.
I installed R using the setup.exe
2. I updated the R intatllation with one of the zip files. (rw1041sp.zip)
now i had the rcmd.exe in the bin.
3. I do not found any hint in the docu that perl is
2006 May 30
1
executable file with R
Hi,
I made an R function, and I want make an executable applet with it. Do
you know how it is possible?
Thank for your help.
Romain
--
Lorrilli?re Romain
UMR 8079 Laboratoire Ecologie, Syst?matique et Evolution
B?t. 362
Universit? Paris-Sud
91405 Orsay cedex
France
tel : 01 69 15 56 85
fax : 01 69 15 56 96
mobile : 06 81 70 90 70
email : romain.lorrilliere at
2005 Feb 01
1
package installation problem
Hi,
I'm running R-1.9.1 and I'm unable to succesfully
install packages using either 'R CMD INSTALL
xxx.tar.gz' or 'install.packages("xxx").
For example, if I try to install the msm package I
get:
R CMD INSTALL msm_0.4.1.tar.gz
* Installing *source* package 'msm' ...
ERROR: R_HOME ('/root/R-1.9.1') not found
ERROR: installing package DESCRIPTION
2010 Jun 08
3
Question on trying to build R 2.11.1 on Tru64(aka OSF1) system
Hello,
I am trying to build the R-2.11.1 software for university faculty to use in
research projects on a DEC/Compaq/HP AlphaServer model GS160 16CPU/64GB memory
running Tru64Unix aka OSF1 version 5.1B-5.
Is it known whether it is possible to build the R-2.11.1 software on the
platform I am using?
In my attempts to build the R-2.11.1 software, I first used the native C
and Fortran 77/90/95
2009 Feb 12
2
beginner's question: group of regressors by name vector?
dear r-experts: there is probably a very easy way to do it, but it eludes
me right now. I have a large data frame with, say, 26 columns named "a"
through "z". I would like to define "sets of regressors" from this data
frame. something like
myregressors=c("b", "j", "x")
lm( l ~ myregressors, data=... )
is the best way to create new
2010 Jan 22
2
sorted reshaping?
dear R wizards:? I am wrestling with reshape.? I have a long data set
that I want to convert into a wide data set, in which rows are firms
and columns are years.
> summary(rin)
firm fyear sim1
Min. :1004.00 Min. :1964.0 Min. : -1.00000
1st Qu.:1010.00 1st Qu.:1979.0 1st Qu.: -0.14334
Median :1016.00 Median :1986.0 Median : 0.00116
Mean
2010 Jan 08
4
fast lm se?
dear R experts---I am using the coef() function to pick off the coefficients
from an lm() object. alas, I also need the standard errors and I need them
fast. I know I can do a "summary()" on the object and pick them off this
way, but this computes other stuff I do not need. Or, I can compute (X'
X)^(-1) s^2 myself. Has someone written a fast se() function?
incidentally, I think
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help,
I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4:
C:\TEMP>Rcmd SHLIB tryf.o
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
C:\TEMP>Rcmd SHLIB tryf.f
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
I