Displaying 20 results from an estimated 40000 matches similar to: "Help! Weird behavioral difference between R interactive and command-line?"
2010 Jul 21
1
Behavioral differences between versions.
Greetings,
We are upgrading systems in our lab from rhel4 to rhel5. We've
noticed a number of differences in behavior while using the same
arguments on the same data set. We get different sent and received
counts. We also had one case with some data corruption that was only
fixed after telling rsync to checksum everything.
I was hoping someone in the list can point me to some better
2006 Jun 04
2
difference in behavior between batch and source
Hi : I am using R 2.20 on windows XP and I have a REALLY
long read.table statement because the col.names argument
has 440 character strings in it. ( I use python to write R code ).
When I run the read.table statement inside an R program
( the R program only consists of the read.table statement )
using the source command in an interactive R session,
everything works fine. But, if I take the same
2012 Jun 18
1
Interactive Graphics
Hi,
I'd like to make an interactive graph like this:
http://blog.ggplot2.org/post/25201174009/name-popularity
I believe he was done with the ggplot2 and saved in svg format. if someone
has experience with this subject (graph interactive web) could give me a
help?
Thanks
--
Éder David Borges da Silva
ederdbs@gmail.com
ederdbs@hotmail.com
Skype: ederdbs
041 96717488
"Tudo é
2012 Jul 13
1
Running R from the command line: weird problem
Hi,
I'm trying to run an R script from the command line and I do it in the
following way:
R CMD BATCH -q <something.R> <output file>*
*I write the R script from inside a Perl program (on UNIX of course!)
and execute the shell command using the function "system".**What
intrigues me is the strange error that I see in the output file:
Error: embedded nul in string:
2012 Jan 27
2
Is there a R command for testing the difference of two liear regressions?
Hi al,
I am looking for a R command to test the difference of two linear
regressoon betas.
Lets say I have data x1, x2...x(n+1).
beta1 is obtained from regressing x1 to xn onto 1 to n.
beta2 is obtained from regressing x2 to x(n+1) onto 1 to n.
Is there a way in R to test whether beta1 and beta2 are statistically
different?
Thanks a lot!
[[alternative HTML version deleted]]
2005 Jun 21
2
X11, interactive device
Hey,
i'm trying to set up an cgi web-application that produces maps and other graphics with R. for local testing i used my laptop which has an win xp OS. there everything works fine. now i try to move the whole system over on an unix machine, mainly because i want to establish a connection to a database. anyway, i'm using R 2.0.0 on an other computer in a local network. here comes my
2009 Nov 10
1
Command-line arguments and --interactive
Hello,
I am interested in passing a command or two to R on the command
line. The desired behavior is for R to run these commands first, and then
begin an interactive session. For example:
$ R -e 'foo <- read.csv("/tmp/foo.csv")'
...which would launch R and execute that command, so when I return from
getting coffee, foo would be loaded.
I know that if I put this command
2017 Dec 13
4
difference between ifelse and if...else?
Hi there,
I don't know why the following codes are return different results.
> ifelse(3 > 2, 1:3, length(1:3))
[1] 1
> if (3 > 2) 1:3 else length(1:3)
[1] 1 2 3
Any hints?
Best,
Jinsong
2005 Aug 30
2
xtable
I have installed package xtable with
su -c 'R CMD INSTALL xtable'
and got this promising feedback:
* Installing *source* package 'xtable' ...
** R
** data
** help
>>> Building/Updating help pages for package 'xtable'
Formats: text html latex example
* DONE (xtable)
Despite that, R returns:
Error: couldn't find function "print.xtable"
2007 Feb 21
3
non-interactive R_tryEval does not return
...at least I think that is what happens, at least on some
configurations. Here's a repeatable example:
cd R_HOME/tests/Embedding
touch tmp.R
make tryEval
and then (correct)
> ./tryEval --slave
Error in sqrt("") : Non-numeric argument to mathematical function
Caught an error calling sqrt(). Try again with a different argument.
[1] 3
versus (non-interactive; no return)
>
2017 Jun 14
3
about fitting a regression line
Hi R users,
I have some data points (Xi, Yi), and they may follow such a pattern Yi =
cCOS(Xi) + d, how to find the c and d in R? which function to use? Also,
how to get the R2 and p value for this correlation? Thanks for any kind of
help.
[[alternative HTML version deleted]]
2005 Dec 07
2
concatenate data frame
hi all
Here is a small part of my code:
tab_tmp<-tab[1:(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])),length(tab)];
tab_tmp1<-tab[(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])):length(TotalFillTimeHours),length(tab)];
tab<-c(tab_tmp,tab_tmp1);
attach(tab);
Here is the output:
Error in attach(tab) : attach only works for lists and data frames
Execution halted
2002 May 24
3
command line edit
Does anybody know a way to edit your command line arguments on the command line,
other than deleting everything and re-typing? My user just want to be able to
use emacs like commands - like you can do in a shell, and s-plus from what he
says. I attempted to set up the emacs add-on, without much success, on a Solaris
7 box, but he doesn't really want that, he just wants the command line
2017 Dec 15
1
something weird has happened....!!!!!!!!!!
You could try this and see what you get:
unique( yguii(ZEEL.NS, "o") - yguii(ZEEL.NS, "o") )
or maybe
table( yguii(ZEEL.NS, "o") - yguii(ZEEL.NS, "o") )
You showed two sets of output from the expression
yguii(ZEEL.NS, "o")
Were they done one right after the other? Or could ZEEL.NS have changed in between?
The function could be
2008 Mar 28
2
installing a new package
Dear all,
I have prepared a new package to install in R, I tried to check my package
and I got the following message
------------------------------------------------------------------------
232sub141:~ zahra$ R CMD check /Users/zahra/Desktop/HighProbability
* checking for working latex ... OK
* using log directory '/Users/zahra/HighProbability.Rcheck'
* using R version 2.6.2 (2008-02-08)
*
2017 Jun 14
0
about fitting a regression line
Start with the lm() function; i.e., see
?lm
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 6/14/17, 3:40 PM, "R-help on behalf of lily li" <r-help-bounces at r-project.org on behalf of chocold12 at gmail.com> wrote:
Hi R users,
I have some data points (Xi, Yi), and they may follow such a
2014 Feb 14
2
contrib.url in non-interactive mode
Hi,
is it intended that one cannot install packages in non-interactive mode,
without explicitly setting a CRAN mirror (see below)?
Couldn't a default mirror be used in that case?
Thank you.
Bests,
Renaud
$ Rscript --vanilla -e "install.packages('whatever')"
Installing package into '/home/renaud/R/x86_64-pc-linux-gnu-library/3.0'
(as 'lib' is unspecified)
2015 Apr 24
5
Real sh? Or other efficient shell for non-interactive scripts
On 04/24/15 06:57, Pete Geenhuizen wrote:
>
> On 04/24/15 06:07, E.B. wrote:
>> I'm sure most people here know about Dash in Debian. Have there
>> been discussions about providing a more efficient shell in Centos
>> for use with heavily invoked non-interactive scripts?
>>
>> With sh being a link to bash in Centos I don't know if it would
>> explode
2003 Mar 20
3
command line limit?
Is there a limit on the length of a command line in R?
Thanks,
Dan
2008 Mar 11
1
R-console vs. bash console (execution halted)
Dear Everyone,
I am using R 2.6.2 on my Redhat AS4. I installed the RPM offered on the cran website. I would like to use R from my bash console with the following command:
/path/to/R --vanilla --slave --args < /data/myscript.R
this script invokes a range of functions and tools, among others to process a bunch of raster images in a loop using GDAL. The thing is that releasing this command in