[R] [R-pkgs] brew 1.0-1

2007-08-22 Thread Jeffrey Horner
brew implements a templating framework for mixing text and R code for report generation. brew template syntax is similar to PHP, Ruby's erb module, Java Server Pages, and Python's psp module. brew is written in R with no package dependencies, and it's not just for the web. It can be used as an

Re: [R] using loops to create multiple images

2007-08-04 Thread Jeffrey Horner
Donatas G. wrote: I have a data.frame with ~100 columns and I need a barplot for each column produced and saved in some directory. I am not sure it is possible - so please help me. this is my loop that does not work... vars - list (substitute (G01_01), substitute (G01_02), substitute

Re: [R] from R to html

2007-04-24 Thread Jeffrey Horner
Henrique Dallazuanna wrote: Use the package R2HTML. Or xtable. Jeff -- http://biostat.mc.vanderbilt.edu/JeffreyHorner __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Using R to create pdf's from each file in a directory

2007-04-20 Thread Jeffrey Horner
gecko951 wrote: The Platform I am using R on is RHEL3. I run a bash script that collects data into many CSV files and have been processing them one at a time on my local machine with an excel macro. I would like to use R to take data points from each of the CSV files and create line graphs

Re: [R] Accessing R applications from Web

2007-04-19 Thread Jeffrey Horner
d. sarthi maheshwari wrote: Hi I am trying to provide web interface to my R application. My requirements are simple and can be written down as follows : 1) User must provide all the input parameters on web interface. 2) Based on the input values, R will do some computations. 3) Project

Re: [R] Runing R in a bash script

2007-04-18 Thread Jeffrey Horner
with the rendering tool. /Henrik On 4/17/07, Jeffrey Horner [EMAIL PROTECTED] wrote: Ulrik Stervbo wrote: Hello! I am having issues trying to plot to a ong (or jpg) when the R-code in a bash script is executed from cron. I can generate a pdf file, but when I try to write to a png, the file

Re: [R] Runing R in a bash script

2007-04-17 Thread Jeffrey Horner
Ulrik Stervbo wrote: Hello! I am having issues trying to plot to a ong (or jpg) when the R-code in a bash script is executed from cron. I can generate a pdf file, but when I try to write to a png, the file is created, but nothing is written. If I execute the bash script from my

Re: [R] Question for install Rapache package.

2007-04-16 Thread Jeffrey Horner
Hi Charlie, Charlie wrote: Hi, this is Charlie and I am trying to embed R in my apache server. However, I am having problem with installation. The R projet says that we can install add-on package with command $R CMD (rapache.0.1.4.tar.gz). However, I try to use it in command windows

Re: [R] Fractals with R

2007-04-13 Thread Jeffrey Horner
kone wrote: Hi everybody, I put some R-code to a web page for drawing fractals. See http://fractalswithr.blogspot.com/ If you have some R-code for fractal images, I'm willing to include them to the page. Has somebody tried L-systems or Markov algorithm (http://

Re: [R] Problem with installation of littler-0.0.10. under Free BSD 6.2

2007-03-12 Thread Jeffrey Horner
Hello, Dirk Eddelbuettel wrote: On 12 March 2007 at 13:38, ronggui wrote: [...] | MyBSD% make | R_HOME= /usr/local/bin/R --silent --vanilla --slaveautoloads.h | Syntax error: redirection unexpected | *** Error code 2 | | Stop in /home/ronggui/software/littler-0.0.10. | | Anyone

Re: [R] gsub: replacing a.*a if no occurence of b in .*

2007-02-24 Thread Jeffrey Horner
Charilaos Skiadas wrote: On Feb 24, 2007, at 11:37 AM, Gabor Grothendieck wrote: The _question_ assumed that, which is why the answers did too. Oh yes, I totally agree, the file snippet the OP provided did indeed assume that, though nothing in the text of his question did, so I wasn't

Re: [R] write fixed format

2007-02-21 Thread Jeffrey Horner
YIHSU CHEN wrote: Dear R users; Is there a function in R that I can put text with proper alignments in a fixed format. For instance, if I have three fields: A, B and C, where both A and C are text with 3 characters and left alignment; B is a numeric one with 2 decimals and 3 integer

Re: [R] scripts with littler

2007-01-09 Thread Jeffrey Horner
John Lawrence Aspden wrote: John Lawrence Aspden wrote: I'm actually tempted to use #!/usr/bin/env r rm(list=ls()) Ahem, it turns out to be better to use: #!/usr/bin/env r rm(list=ls()[ls()!=argv]) Eww!! I'm not sure you want to do that. I would recommend sticking with:

Re: [R] littler+dget+stdin - segmentation fault

2007-01-04 Thread Jeffrey Horner
John Lawrence Aspden wrote: Hi, I'm trying to write a series of pipes using littler, and I get the following behaviour: Sorry if I'm just doing something witless, I'm new to R. I'm using the latest versions from debian testing (2.4.0 and 0.0.8). $ r -e 'a-dget(file=stdin()); print(a)'

Re: [R] Help with filled.contour()

2007-01-03 Thread Jeffrey Horner
Dieter Menne wrote: Michael Kubovy kubovy at virginia.edu writes: I tried and it gave a strange result. See http://people.virginia.edu/~mk9y/mySite/twoGaussian.R and http://people.virginia.edu/~mk9y/mySite/twoGaussian.pdf * Session Info

Re: [R] running R without X11

2006-11-14 Thread Jeffrey Horner
Laurence Darby wrote: Prof Brian Ripley wrote: On Tue, 14 Nov 2006, Laurence Darby wrote: Is there anyway to remove this dependency on X11? Please read the help page. R's png device uses X11 for its fonts. You need fonts from somewhere, and vanilla Unix systems don't come with any

Re: [R] get compressed data via a socket connection

2006-11-08 Thread Jeffrey Horner
Prof Brian Ripley wrote: ?gzcon may help, depending exactly what you mean by `zlib-compressed data'. If not, its code will provide you with a prototype to work on. There are also private entry points in connections.c to (de)compress blocks of data to/from a raw vector which again may be a

Re: [R] R CMD BATCH: unable to start device PNG

2006-11-03 Thread Jeffrey Horner
[EMAIL PROTECTED] wrote: Dear r-helpers: Any ideas how to avoid problem described below? I am having the same problem when I run R remotly (not from cgi script); somehow png device wants to talk to X11 and X11 complains... Best regards, Ryszard error msg from batch R process

Re: [R] littler release 0.0.6

2006-10-05 Thread Jeffrey Horner
. Where ? --- You can find the source tarball at both http://dirk.eddelbuettel.com/code/littler/ and http://biostat.mc.vanderbilt.edu/LittleR Comments are welcome, as are are suggestions, bug fixes, or patches. - Jeffrey Horner [EMAIL

Re: [R] How to dowload mod_R.so

2006-10-02 Thread Jeffrey Horner
khao_lek wrote: i don't know url address how to dowload mod_R.so for use R and Apache webserver. i'm want to try R on the web. please tell me. Please visit: http://biostat.mc.vanderbilt.edu/RApacheProject to download the latest release, and also read the paper near the end of the page.

[R] New project: littler for GNU R

2006-09-26 Thread Jeffrey Horner
or (soon !) be gotten from Debian mirrors via $ agt-get install littler littler is known to build and run on Linux and OS X. Who ? = Copyright (C) 2006 Jeffrey Horner and Dirk Eddelbuettel littler is free software; you can redistribute it and/or modify it under

Re: [R] New project: littler for GNU R

2006-09-26 Thread Jeffrey Horner
Seth Falcon wrote: Wow, looks neat. OS X users will be unhappy with your naming choice as the default filesystem there is not case-sensitive :-( IOW, r and R do the same thing. I would expect it to otherwise work on OS X so a change of some sort might be worthwhile. (I'm always amazed

Re: [R] New project: littler for GNU R

2006-09-26 Thread Jeffrey Horner
Duncan Murdoch wrote: On 9/26/2006 1:04 PM, Jeffrey Horner wrote: [...] It can be used directly on the command-line just like, say, bc(1): $ echo 'cat(pi^2,\n)' | r 9.869604 Is there a technical reason that this couldn't work by modifying the script that invokes R

Re: [R] New project: littler for GNU R

2006-09-26 Thread Jeffrey Horner
Seth Falcon wrote: Jeffrey Horner [EMAIL PROTECTED] writes: [...] littler will install into /usr/local/bin by default, so I don't think there's a clash with the Mac binary provided by CRAN, right? It depends what you mean by clash :-) If both are on the PATH, then you get the first one

Re: [R] Creating Movies with R

2006-09-22 Thread Jeffrey Horner
If you run R on Linux, then you can run the ImageMagick command called convert. I place this in an R function to use a sequence of PNG plots as movie frames: make.mov.plotcol3d - function(){ unlink(plotcol3d.mpg) system(convert -delay 10 plotcol3d*.png plotcol3d.mpg) } Examples can

Re: [R] remotely saving an R session

2006-09-20 Thread Jeffrey Horner
Gamal Azim wrote: Is it possible to remotely save an R session then terminate R? Of course the destructive task after 'then' is rather straightforward by itself. Yes. Sending the process a SIGUSR1 signal: $ kill -USR1 pid will save the global environment in the file .RData, but you'll need

Re: [R] graphic output file format

2006-08-11 Thread Jeffrey Horner
?). Conan -- Jeffrey Horner Computer Systems Analyst School of Medicine 615-322-8606 Department of Biostatistics Vanderbilt University __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] RODBC on linux

2006-07-27 Thread Jeffrey Horner
Armstrong, Whit wrote: Thanks, everyone. I'll give freeTDS a try. One final hitch to be aware of when using FreeTDS: MS SQL Server authenticates db connections in two different ways (well actually three, but it's just the combination of 1 and 2): 1) Sql server authenticates the connection,

Re: [R] useR! Thanks

2006-06-22 Thread Jeffrey Horner
Achim Zeileis wrote: [...] The plan is to provide the original presentation slides of the panelists and a video of the whole panel disc, and probably some minutes and/or further information. Did you happen to video Ivan Mizera's talk as well? I'd really like to see that again! -- Jeffrey

Re: [R] R and ViM

2006-04-21 Thread Jeffrey Horner
to misinterpretation of message and meaning, and especially when authors use negative messages like RTFM (google it; you'll figure it out quickly). -- Jeffrey Horner Computer Systems Analyst School of Medicine 615-322-8606 Department of Biostatistics Vanderbilt University

Re: [R] using GDD fonts

2006-04-12 Thread Jeffrey Horner
://luizrodrigotozzi.multiply.com/ http://www.flogao.com.br/luizrodrigotozzi __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Jeffrey Horner

Re: [R] RMySQL's column limit

2006-03-23 Thread Jeffrey Horner
://www.R-project.org/posting-guide.html -- Jeffrey Horner Computer Systems Analyst School of Medicine 615-322-8606 Department of Biostatistics Vanderbilt University __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] extracting RGB values from a colorspace class object

2006-03-03 Thread Jeffrey Horner
-LUV_space.png Somehow the plot() method in the colorspace package is converting color space coordinates to their RGB values... Does anyone have an idea as to how to access these RGB triplets? Thanks in advance! -- Jeffrey Horner Computer Systems Analyst School

Re: [R] Command-line editing history

2006-03-03 Thread Jeffrey Horner
-- Jeffrey Horner Computer Systems Analyst School of Medicine 615-322-8606 Department of Biostatistics Vanderbilt University __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Infinite loop running Mod_R/Rapache

2006-02-03 Thread Jeffrey Horner
files?) needs to be handled more delicately in a server environment. I'm going to do some more digging in the R source... I hope I haven't made some glaringly wrong assumptions. -- Jeffrey Horner Computer Systems Analyst School of Medicine 615-322-8606 Department

[R] [R-pkgs] [ANNOUNCE] mod_R: The R/Apache Integration Project

2005-08-02 Thread Jeffrey Horner
Title: An R interface to the Apache 2.0 web server Author:Jeffrey Horner Maintainer:Jeffrey Horner [EMAIL PROTECTED] License: Apache License, Version 2.0 Description: RApache allows web applications to be written in R and executed within

[R] Multiple assignments in one statement

2005-07-08 Thread Jeffrey Horner
Is this possible? For instance, I have a function that returns a vector length 3. In one statement I'd like to assign each element of the vector to different variables. Syntactically, I hoped this would work: c(x,y,z) - myfun(); Thanks, -- Jeffrey Horner Computer Systems Analyst

Re: [R] Rinternals.h and iostream don't play nice together'

2005-02-03 Thread Jeffrey Horner
:45, from foo.cc:3: /usr/include/c++/3.3/bits/codecvt.h:110:52: macro length passed 4 arguments, but takes just 1 ... It's good to read error messages. Cheers, -- Jeffrey Horner Computer Systems Analyst School of Medicine 615-322-8606 Department of Biostatistics