Dear Stephen,
I answer inline:
On 2020-08-19 12:57 +1000, Jim Lemon wrote:
| On Wed, Aug 19, 2020 at 3:09 AM Stephen P. Molnar
wrote:
| |
| | What I would like to do is use
| | linetype, rather than color, in line
| | 27.
You need to specify linetype instead of
color in ggplot::aes, like so
Okay, I can't help much with the ggplot stuff so forget the "lty="
argument for that is base graphics. However, you may get away with
ggtitle(paste0("COVID-19 Tests in Ohio \n(",date[length(date]),")"))+
I don't know whether the tidy* stuff handles indexing in the same way as base R.
Jim
On Wed
Dear Stephen, I reply you inline:
On 2020-08-18 11:09 -0700, Bert Gunter wrote:
| On Tue, Aug 18, 2020 at 10:10 AM Stephen P. Molnar
wrote:
| |
| | Thanks to the kind folks on this
| | list, this is an elegant replacement
| | for the clumsy R script that I that
| | I wrote.
| |
| |
| |
| |
1. Generally you should make your posts self-contained -- I see no line
14's or 33's or whatever. Note that you did not continue the old thread
either. I have no desire to go poking around in previous threads (others
certainly may!).
2. Re: max of dates.
max(as.Date(c("1976-04-07","1982-02-22"))
Thanks to the kind folks on this list, this is an elegant replacement
for the clumsy R script that I that I wrote.
However, I do have a few changes that I would like to make. The problem
is that while I know how to make changes in Python, I am still bumbling
around in R Code.
The day-to-d
The subject of your email is missing. Perhaps you need to read the Posting
Guide (again?) about attachments. Embedding your example directly in the body
of the email is generally more accessible in archives than attaching it.
--
Sent from my phone. Please excuse my brevity.
On April 27, 2016 1
Hi All,
I am addressing this post to all who are new to R.
When learing R in the last weeks I took some notes for myself to have code
snippets ready for the data analysis process. I put these snippets
together as a script template for future use. Almost all of the given command
prototypes are
I cannot see how that would be possible. R must be installed in order to use it.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
hi
i want to run r script in web without install r on server(my server is
windows).
is it possible?how?
thank you
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mai
On Aug 5, 2014, at 1:53 PM, Dominic Comtois wrote:
> I have an R script which is to be run in batch mode from a Windows shell
> and I need to "echo" messages to this shell (reporting that this step has
> succeeded and that other failed, and so on).
>
> A combination of R CMD BATCH myscript.R con
I have an R script which is to be run in batch mode from a Windows shell
and I need to "echo" messages to this shell (reporting that this step has
succeeded and that other failed, and so on).
A combination of R CMD BATCH myscript.R con and options(echo=FALSE) is not
really an option since I also n
Please read the Posting Guide. RStudio has a support forum of their own, and
you should post in plain text.
That said, RStudio Server is just a user interface for the R software installed
on the server it runs on. This is a great place to ask questions about R, but
not about how to add memory t
In my opinion, it really depends on the memory size of the machine.
Best,
KK
On Mon, Apr 7, 2014 at 3:01 AM, T Bal wrote:
> Hi,
> I want to install Rstudio server. The reason for that is that I want to run
> R script on this server. In this R script I am loading (working with) very
> large d
Hi,
I want to install Rstudio server. The reason for that is that I want to run
R script on this server. In this R script I am loading (working with) very
large data with size 1000 Mb. When I run this R script I get memory error.
If I run this script on Rstudio server, will I not have this problem?
Hi Fabio,
I cannot reproduce it but this is probably some env var not set, or
some problem with the path to your R installation having whitespace in
it.
See ?.libPaths, if it is empty you might want to hard-code R_HOME somewhere.
Regards,
On Thu, Feb 14, 2013 at 10:58 PM, Fabio Veronesi wrote:
Hello,
I would like to start running a script from Python with the Rscript command.
I tested several ways of invoking R from Python and I finally I succeeded.
The problem is that the script starts but R does not recognize the
installed packages.
I tried simplifying the matter and I created a scrip
Hello,
On Tue, Jun 12, 2012 at 11:13 AM, R. Michael Weylandt
wrote:
> Long answer: use a closure if for some bizarre reason you just can't
> use a loop.
Do you mean use recursion?
Take care
Oliver
--
Oliver Ruebenacker
Bioinformatics Consultant (http://www.knowomics.com/wiki/
Hello,
On Tue, Jun 12, 2012 at 10:25 AM, Rantony wrote:
> Hi,
>
> here i have some code...
>
>
> a <-1
> b <- b+1
> c <- b+a/20
> if c >5
> { d<- 1 }
> else { d<- 0 }
>
> i want to repeat this code from the 2nd line [b <- b+1] without using loop.
> Actulay i want to use "*Label *" and cal
Rantony
Verzonden: dinsdag 12 juni 2012 16:26
Aan: r-help@r-project.org
Onderwerp: [R] R-SCRIPT Label Calling Method
Hi,
here i have some code...
a <-1
b <- b+1
c <- b+a/20
if c >5
{ d<- 1 }
else { d<- 0 }
i want to repeat this code from the 2nd line [b <- b+1] without usin
Short answer: no.
Long answer: use a closure if for some bizarre reason you just can't
use a loop.
Bonus tip: change the last three lines to:
d <- c > 5
for speed and clarity!
Michael
On Tue, Jun 12, 2012 at 9:25 AM, Rantony wrote:
> Hi,
>
> here i have some code...
>
>
> a <-1
> b <- b+1
>
Hi,
here i have some code...
a <-1
b <- b+1
c <- b+a/20
if c >5
{ d<- 1 }
else { d<- 0 }
i want to repeat this code from the 2nd line [b <- b+1] without using loop.
Actulay i want to use "*Label *" and call *GoTo* method like in other
coding Languages.
For eg:- like this,
Hi,
So is your actual question about how to prompt for user input, rather
than anything about the SQL extraction or graphing?
I think I would write the R code as a function that takes the four
values as arguments. That's not the same as prompting the user, but
more flexible and more R-ish.
You
Hi George,
On Tue, Jun 21, 2011 at 9:33 AM, geo...@leadbetter.cc
wrote:
> I have written a script in an R text file that i can run through a terminal
> window. My script though contains lots of code to interpret my input
> arguments, which are then put into an SQL query to get the data I want to
I have written a script in an R text file that i can run through a terminal
window. My script though contains lots of code to interpret my input
arguments, which are then put into an SQL query to get the data I want to
plot some graphs. The script works, but there must be an easier way to do
what I
- Jubal Early, Firefly
r-help-boun...@r-project.org wrote on 02/18/2011 10:29:55 AM:
> [image removed]
>
> Re: [R] R script HELP!
>
> whizevans
>
> to:
>
> r-help
>
> 02/18/2011 11:06 AM
>
> Sent by:
>
> r-help-boun...@r-project.org
>
>
&g
OK thanks Jonathon, I will have a go.
Is the plotdir file technically my output file? Or what is this otherwise?
Also, having never used R script before, is it not very good at reading
data, may I have to alter my input file in excel first?
Thanks
--
View this message in context:
http://r.789
oad
Kearneysville WV, 25430
(304) 724-4480
"Is the room still a room when its empty? Does the room,
the thing itself have purpose? Or do we, what's the word... imbue it."
- Jubal Early, Firefly
r-help-boun...@r-project.org wrote on 02/18/2011 08:21:36 AM:
> [image removed]
&
The following is my R script which I am struggling with to assess ICESat
data..perhaps it is the ID_min or ID_max that is wrong? I don't know, any
help would be greatly appreciated :(
# OPTIONS - CHANGE THESE VARIABLES IF NEEDED\par
###
I'll try this thanx...
--
View this message in context:
http://r.789695.n4.nabble.com/R-script-on-linux-tp3023650p3024922.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/l
? Does the room,
the thing itself have purpose? Or do we, what's the word... imbue it."
- Jubal Early, Firefly
From:
Thomas Levine
To:
Jonathan P Daily
Cc:
gokhanocakoglu , r-help@r-project.org,
r-help-boun...@r-project.org
Date:
11/02/2010 02:24 PM
Subject:
Re: [R] R script on
t;
> From:
> gokhanocakoglu
> To:
> r-help@r-project.org
> Date:
> 11/02/2010 09:11 AM
> Subject:
> Re: [R] R script on linux?
> Sent by:
> r-help-boun...@r-project.org
>
>
>
>
> I can't run the script the program doesn't work...
> --
>
s the word... imbue it."
- Jubal Early, Firefly
From:
gokhanocakoglu
To:
r-help@r-project.org
Date:
11/02/2010 09:11 AM
Subject:
Re: [R] R script on linux?
Sent by:
r-help-boun...@r-project.org
I can't run the script the program doesn't work...
--
View this message in
I can't run the script the program doesn't work...
--
View this message in context:
http://r.789695.n4.nabble.com/R-script-on-linux-tp3023650p3023670.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
ht
On 02/11/2010 8:58 AM, gokhanocakoglu wrote:
Dear all,
I am conducting a simulation study for my thesis on R in windows xp platform
but due to better performance and for gaining time I have to run the script
on linux server(some kind of workstation). But I have no idea which format
the codes shou
Dear all,
I am conducting a simulation study for my thesis on R in windows xp platform
but due to better performance and for gaining time I have to run the script
on linux server(some kind of workstation). But I have no idea which format
the codes should be in. Is there any converter for this sit
I'm trying to create an R script that will execute the HMAC algorithm for
key-hashing messages. My hope is to use this script for some web
authentication via R.
The algorithm is found at http://www.ietf.org/rfc/rfc2104.txt
Here is some example code that I have done that does not work for HMAC-MD
Actually, i think i figured it out. My bad, i am inexperienced with cron.
When it runs, it doesn't have the environment. Once i wrapped my R script
into shell script that sourced the .bashrc file, i was back in business.
Maybe there is more elegant solution, without additional shell script --
poss
I have R script that i need to run in cron. Either R libraries or some .so
libraries that they depend on don't get loaded correctly. Here is an
example. I have a file, call it tmp.R
tmp.R
=
R --slave --args $0 $* < tryCatchList -> tryCatchOne ->
Execution halted
Hello,
You might like the php client to Rserve that is part of the next version
of Rserve. see http://www.rforge.net/Rserve/svn.html
install the last snapshot, and check the client/php/simple.php file
If you decide to go this way, then I'd suggest you use the
stats-rosuda-devel mailing list
Hello,
I am having the same problem. My webmaster is not ready to install R on the
web server.
Is there a way to run R on a remote linux cluster and POST results from the
remote server to my website?
I am sorry if this is more of a PHP question.
Thank you and Any help appreciated.
S
--
View t
How do I check whether R bin directory is added to PATH variable or not and
if not then how do i add it?
On Wed, Dec 2, 2009 at 5:34 PM, Romain Francois
wrote:
> On 12/02/2009 12:30 PM, Hrishi Mittal wrote:
>
>>
>>
>> I agree with Romain that you should probably try and get Rserve to work as
>> t
On 12/02/2009 12:30 PM, Hrishi Mittal wrote:
I agree with Romain that you should probably try and get Rserve to work as
that is a much better way. However, to get your commandline version working,
I suggest you use the Rscript comman instead of a bash script. So let's say
you save your R script
I agree with Romain that you should probably try and get Rserve to work as
that is a much better way. However, to get your commandline version working,
I suggest you use the Rscript comman instead of a bash script. So let's say
you save your R script as a myscript.R file. Then do:
shell_exec('Rsc
Some more development: I found the directory of R in the Root
It is
/usr/bin/R
I did a ls -l R and got this output
-rwxr-xr-x 1 root root 6642 Jan 9 2006 R (This looks like in CHMOD 755
already)
So I modified my shell script
#!/bin/sh
cd /usr/bin/
pwd
R --slave <&1");
Error:
/usr/bin ./rscri
Also I tried out your method, it returns the same error. Another thing, If I
change the top line in rscript.sh to R --slave it just gives me a neat
output. I am not sure why running the shell script directly from within the
same folder is working where as from php it is not recognising R command.
RServe looks exciting but the problem is that I am not sure whether I would
be allowed to install anything on the linux server on which I am working.
On Wed, Dec 2, 2009 at 3:40 PM, Romain Francois
wrote:
> On 12/02/2009 10:43 AM, Amrit Nandan wrote:
>
>> I tried calling R from a shell script and
On 12/02/2009 10:43 AM, Amrit Nandan wrote:
I tried calling R from a shell script and it works. This is an example
file rscript.sh
R --no-save << EOT
x<-2*pi
print(cbind(x,sin(x)))
quit("no")
EOT
This works perfectly on the Linux machine in which I have logged in via
SSH using the command ("./r
I tried calling R from a shell script and it works. This is an example file
rscript.sh
R --no-save << EOT
x<-2*pi
print(cbind(x,sin(x)))
quit("no")
EOT
This works perfectly on the Linux machine in which I have logged in via SSH
using the command ("./rscript.sh")
I tried running this command usin
On 12/01/2009 12:48 PM, Hrishi Mittal wrote:
Hi Amrit,
I believe you can you use the PHP system command to call Rscript or R CMD. I
don't know much PHP but this page might be useful -
http://php.net/manual/en/function.system.php.
You might also want to look at rapache -
http://biostat.mc.vander
Hi Amrit,
I believe you can you use the PHP system command to call Rscript or R CMD. I
don't know much PHP but this page might be useful -
http://php.net/manual/en/function.system.php.
You might also want to look at rapache -
http://biostat.mc.vanderbilt.edu/rapache/
Good luck with your project
Amrit Nandan 01-Dec-09 08:27:
> I have created a web interface to enable analysis for users without having
> much to worry about the stats in the backend. In this particular case I have
> reached a stage where I have finally created two arrays between which I want
> to do an independant samples T
Hi,
I have created a web interface to enable analysis for users without having
much to worry about the stats in the backend. In this particular case I have
reached a stage where I have finally created two arrays between which I want
to do an independant samples T Test. I have the arrays ready in
Hi,
I have created a web interface to enable analysis for users without having
much to worry about the stats in the backend. In this particular case I have
reached a stage where I have finally created two arrays between which I want
to do an independant samples T Test. I have the arrays ready in a
2008/11/6 Paul Hiemstra <[EMAIL PROTECTED]>:
>> How can execute a bash command inside the script, like the command for
>> change the directory (cd)?
> ?system
The system function won't work for changing the working directory of R though:
> getwd()
[1] "/home/rowlings"
> system("cd /")
> getwd(
Alfredo Alessandrini wrote:
A simple question :-)
I'm writing a R scritp(#!/usr/bin/Rscript)
How can execute a bash command inside the script, like the command for
change the directory (cd)?
Thanks in advance,
Alfredo
__
R-help@r-project.org m
A simple question :-)
I'm writing a R scritp(#!/usr/bin/Rscript)
How can execute a bash command inside the script, like the command for
change the directory (cd)?
Thanks in advance,
Alfredo
__
R-help@r-project.org mailing list
https://stat.ethz.
This is a python not an R problem.
Use of redirection is handled by a shell, not by the executable (usually:
it could depend on the compiler). The Windows system and popen commands
(and hence R's system()) does not use a shell: POSIX OSes do.
It will be cleaner to use Rscript to run scripts.
'Rterm --help' shows the usage as:
Rterm [options] [< infile] [>outfile] [EnvVars]
just in case you didn't understand what the angle brackets meant:
the term "[< infile]" means "read input from 'infile'", and
the term "[> outfile]" means "write output to 'outfile'".
Though your code works at th
Hi,
I'm trying to execute R-script from Python. I'm using R 2.7.2, Python 2.5
and WinXP.
I don't won't to use Python/R interface because of nature of project.
Python code :
import subprocess
command = 'c:\\Program Files\\R\\R-2.7.2\\bin\\Rterm.exe --vanilla -q
d:\\output.out'
subprocess.Popen(
I suggest you consult the source code, specifically src/unix/system.c and
src/unix/sys-std.c.
interactive() reports the value of the C-level variable R_Interactive, and
standard Unix-alike R runs an event loop only if that is true. I suspect
RGL is relying on that event loop, but reading its s
Hello again
I think now I can refine my problem: I want to run R scripts
non-interactively in batch-mode or invoked in Perl scripts, with
interactive rgl windows (responding to my mouse actions). Ideally the R
script finishes when I close the rgl window and executes some last
commands in the R
Prof Brian Ripley wrote:
> On Thu, 3 Jan 2008, Philipp Fechteler wrote:
>
>> Hello Mr Ripley
>>
>> Prof Brian Ripley wrote:
>>> So you have to write a script that will not terminate until you
>>> 'press a button or something like this'. That's easy to do, but as
>>> you haven't told us your OS.
On Thu, 3 Jan 2008, Philipp Fechteler wrote:
> Hello Mr Ripley
>
> Prof Brian Ripley wrote:
>> So you have to write a script that will not terminate until you 'press a
>> button or something like this'. That's easy to do, but as you haven't told
>> us your OS. E.g. on Windows, call winDialogSt
Hello Mr Ripley
Prof Brian Ripley wrote:
> So you have to write a script that will not terminate until you 'press a
> button or something like this'. That's easy to do, but as you haven't
> told us your OS. E.g. on Windows, call winDialogString at the end.
>
Thank you for helping. I am runni
So you have to write a script that will not terminate until you 'press a
button or something like this'. That's easy to do, but as you haven't
told us your OS. E.g. on Windows, call winDialogString at the end.
On Fri, 21 Dec 2007, Philipp Fechteler wrote:
> Hello R friends
>
> I am quite impr
Hello R friends
I am quite impressed by the power of R, I am using it only since some
weeks now. But its visualizing capabilities are outstanding!
But one thing I couldn't solve: I have programs producing lots of data,
most times 3D. In R I am using the library rgl to visualize nicely the
3D d
66 matches
Mail list logo