Re: [R] RMySQL install on windows

2012-11-19 Thread Jeffrey Horner
Sorry for not taking care of this... If anyone would like to take over maintainership of RMySQL I'm sure the R community would greatly appreciate it. I just don't have the time these days. Jeff [[alternative HTML version deleted]] __ R-help@r-p

[R] [R-pkgs] Rook: software and specification for R web applications and servers

2012-01-12 Thread Jeffrey Horner
web system, or consider creating elegant ggplot2 graphics on-demand from a fresh data stream. Also, consider creating dynamic instructional content for the classroom. If you have other examples or ideas, please join in the discussion on R-help or here: http://groups.g

[R] [R-pkgs] Rook: software and specification for R web applications and servers

2011-04-25 Thread Jeffrey Horner
ssion on R-help or here: http://groups.google.com/group/rrook -- Jeffrey Horner (author of rApache and brew) ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-

Re: [R] Plotting to stdout

2009-08-28 Thread Jeffrey Horner
Gábor Csárdi wrote: On Fri, Aug 28, 2009 at 1:33 PM, Gabor Grothendieck wrote: [...] I could have used this functionality in a previous project as well; however, for Oliver's application just pass the filename to the python program use that in the tag (or have the python program pass the fil

Re: [R] Adobe FLEX interacting with R for rich visualization over the Web

2009-04-23 Thread Jeffrey Horner
Harsh wrote on 04/23/2009 09:49 AM: Hi R users, I am looking to create a rich internet application using R as the analytical back-end with a GUI written entirely in Adobe FLEX. I have come across this paper http://www.bioconductor.org/packages/2.3/bioc/vignettes/RWebServices/inst/doc/RelatedWork.

Re: [R] Template Engine Package for R?

2009-04-09 Thread Jeffrey Horner
Jason Rupert wrote: Related to the posting below, by any chance is there a "Template Engine" package for R? Indeed there is. It's called brew: http://cran.r-project.org/web/packages/brew/index.html Jeff http://en.wikipedia.org/wiki/Template_processor This may make this type of editing muc

[R] [R-pkgs] New R graphics package targeting HTML 5 canvas element

2009-04-03 Thread Jeffrey Horner
Hi, canvas is a new R package implementing a graphics device that emits javascript code conforming to the HTML 5 CanvasRenderingContext2D interface. Available on CRAN soon, but you can get it here immediately: http://www.rforge.net/canvas If you have access to a beta web browser like Firefox

Re: [R] RMySQL compile

2009-03-31 Thread Jeffrey Horner
sten...@go.com wrote on 03/31/2009 08:11 AM: Jeff, Thank you so much for responding. I am ready to do a lot of tweaking. From your message it looks like you are asking me to provide assignments on the same line as R CMD but precede the command. I am using bash and the usual thing would be to

Re: [R] RMySQL compile

2009-03-31 Thread Jeffrey Horner
Try this: PKG_CPPFLAGS="-I/usr/mysql/5.0/include/mysql -I/opt/csw/include -I/usr/sfw/include -I/usr/X11/include-I/usr/lib/gtk-2.0/include -I/usr/local/include" PKG_LIBS="-L/usr/sfw/lib -L/usr/lib -L/usr/local/lib -L/opt/csw/lib -lmysqlclient" R CMD INSTALL RMySQL I had to re

Re: [R] popular R packages

2009-03-08 Thread Jeffrey Horner
Dirk Eddelbuettel wrote: On 8 March 2009 at 13:27, Duncan Murdoch wrote: | But we don't even have that data, since CRAN is distributed across lots | of mirrors. On 8 March 2009 at 19:01, Emmanuel Charpentier wrote: | As far as I can see (but I might be nearsighted), I see no model linking | pa

Re: [R] Help with R and MySQL

2009-02-23 Thread Jeffrey Horner
Aaron Barzilai wrote: Hello, This forum has been very helpful to me in the past, and I've run out of ideas on how to solve my problem. I had been using R and MySQL (and Perl) together for quite some time successfully on my Windows XP machine. However, I recently had some problems with MySQL

Re: [R] Problem with library(RMySQL), registry pointer problem?

2009-02-23 Thread Jeffrey Horner
Yakub wrote: I have the following error: library(RMySQL) Error in fun(...) : A MySQL Registry key was found but the folder C:\Program Files\MySQL\MySQL Tools for 5.0\/. doesn't contain a bin or lib/opt folder. That's where we need to find libmySQL.dll. Error : .onLoad failed in 'loadNamespa

[R] [R-pkgs] RMySQL 0.7-3

2009-02-02 Thread Jeffrey Horner
Dear R users, RMySQL 0.7-3 has been released. Expect it to hit the CRAN mirrors shortly, but in the mean time please get it here: http://biostat.mc.vanderbilt.edu/RMySQL From the NEWS file: Version 0.7-3 * Added mysqlClientLibraryVersions() which returns the compiled and loaded client lib

Re: [R] Problem installing RMySQL ("S4R.h:40:17: error: S.h: No such file or directory"?)

2009-01-30 Thread Jeffrey Horner
Dan Bolser wrote: Hi, I'm trying to install RMySQL and I keep hitting errors. My computer is: uname -a Linux cricket 2.6.18-92.1.22.el5PAE #1 SMP Tue Dec 16 12:36:25 EST 2008 i686 i686 i386 GNU/Linux I have set the following environment settings: export PKG_LIBS="-L/usr/lib/mysql -lmysqlclie

Re: [R] RCurl unable to download a particular web page -- what is so special about this web page?

2009-01-26 Thread Jeffrey Horner
Duncan Temple Lang wrote: clair.crossup...@googlemail.com wrote: Dear R-help, There seems to be a web page I am unable to download using RCurl. I don't understand why it won't download: library(RCurl) my.url <- "http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html

Re: [R] .Renviron for multiple hardwares...

2009-01-25 Thread Jeffrey Horner
Jonathan Greenberg wrote: Our lab has a lot of different unix boxes, with different hardware, and I'm assuming (perhaps wrongly) that by setting a per-user package installation directory, the packages will only work on one type of hardware. Our systems are all set up to share the same home dir

[R] Problems with RMySQL and MySQL server version 5.1

2009-01-12 Thread Jeffrey Horner
est, Jeff Original Message Subject: Re: [R-sig-DB] Problems with RMySQL and MySQL server version 5.1 Date: Wed, 07 Jan 2009 16:36:48 + From: Prof Brian Ripley To: Jeffrey Horner CC: r-sig...@stat.math.ethz.ch References: <4964cd3d.9000...@vanderbilt.edu> There is a long,

Re: [R] package install error in CentOS

2008-12-19 Thread Jeffrey Horner
Check that your data partitions have the 'exec' flag set in /etc/fstab, particulary the /tmp partition: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=1687&forum=31 Jeff Jeroen Ooms wrote: I am trying to install package "Cairo" on CentOS 5.2, but I keep getting this error: * Inst

Re: [R] understanding recursive functions

2008-12-18 Thread Jeffrey Horner
joseph.g.bo...@gsk.com wrote on 12/18/2008 04:22 PM: I'm trying to understand the use of recursive functions described on page 45 of An Introduction to R by the R core development team. A function is a list of expressions, which all get executed with only the last being assigned to a global va

[R] [R-pkgs] RMySQL 0.7-2 now available on CRAN

2008-12-05 Thread Jeffrey Horner
Dear R users, RMySQL 0.7-2 is now available on CRAN: http://cran.r-project.org/web/packages/RMySQL/index.html From the NEWS file: * New maintainer is Jeffrey Horner <[EMAIL PROTECTED]>. * We no longer distribute libmysql.dll. This library is now found either by reading the MYSQ

Re: [R] How to avoid "$ operator is invalid for atomic vectors"

2008-11-06 Thread Jeffrey Horner
cruz wrote on 11/06/2008 12:16 PM: Thanks for all the responses, they are all very helpful:) you don't need to assign dimension or classes to your objects. It's easier if you do like this this is something that really bothers me, when I need to define an object which i will later fill with d

Re: [R] Getting frustrated with RMySQL

2008-10-14 Thread Jeffrey Horner
Barry Rowlingson wrote on 10/14/2008 04:40 PM: 2008/10/14 Jeffrey Horner <[EMAIL PROTECTED]>: I've found the best way to parameterize is using R's sprintf function. For instance, the following query not only parameterizes the variable position, but also the table name: field

Re: [R] Getting frustrated with RMySQL

2008-10-14 Thread Jeffrey Horner
Ted Byers wrote on 10/14/2008 02:33 PM: Getting the basic stuff to work is trivially simple. I can connect, and, for example, get everything in any given table. What I have yet to find is how to deal with parameterized queries or how to do a simple insert (but not of a value known at the time t

Re: [R] RApache

2008-10-08 Thread Jeffrey Horner
lamack lamack wrote: Dear all, I have a question about RApache. Is it possible install it under XAMPP server? I would like of some directions. Is it needed install the R before? As long as your XAMPP server runs some variant of UNIX, rapache should install. and Yes, you should install R fi

[R] Possible R graphics devices

2008-09-04 Thread Jeffrey Horner
Hello all, I've been working on a new R Graphics device that targets Adobe's Shockwave Flash format (SWF for short). It uses http://www.libming.org/ on the backend. Here are some example outputs so far: http://160.129.129.41/~hornerj/plots/ Once you click on the above, choose a directory lik

Re: [R] aligned memory allocation in C

2008-08-12 Thread Jeffrey Horner
Christophe Dutang1 wrote: Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their fonction fill_array32 which need aligned memory. That is to say I need to use the C function memalign on windows, posix_memalign

Re: [R] X11 plotting error

2008-08-12 Thread Jeffrey Horner
Hmmm... the short answer is that your call to png() is requiring X11 to generate the plot. Don't know what version you're running, but prior to R 2.7.0, all png() calls needed access to the X server to create the plots (on Unix). But with 2.7.0 and later, png() can be called with type='cairo' t

Re: [R] 'system' command through Rserve

2008-07-31 Thread Jeffrey Horner
This probably has to do with your ssh configuration and nothing to do with R. How are you starting Rserve? Is it run with the same user privileges as when you run R manually? Best, Jeff Patil, Prasad wrote on 07/31/2008 02:51 PM: Hello, I've installed an Rserve instance on a remote serv

Re: [R] environment question

2008-07-28 Thread Jeffrey Horner
Edna Bell wrote: Hi R users! I was looking at some of the example code for the "environment" function. Here it is: e1 <- new.env(parent = baseenv()) # this one has enclosure package:base. e2 <- new.env(parent = e1) assign("a", 3, envir=e1) ls(e1) ls(e2) exists("a", envir=e2) # this succeeds

[R] ANNOUNCE: rapache 1.1.0 release

2008-07-24 Thread Jeffrey Horner
Hello, First presented at DSC2005, rapache is a project supporting web application development using the R statistical language and environment and the Apache web server. The current release runs on UNIX/Linux and Mac OS X operating systems. http://biostat.mc.vanderbilt.edu/rapache/ rapache

[R] Should this PDF render correctly without font embedding?

2008-07-24 Thread Jeffrey Horner
A professor here at Vanderbilt sent me the following code. Each of the text strings should right justify against the center vertical bar, but because of font issues it doesn't. I understand that there are workarounds, but I was just curious if this was consistent across all platforms. On linux

Re: [R] Font quality in base graphics

2008-07-15 Thread Jeffrey Horner
willemf wrote on 07/15/2008 08:42 AM: I am attempting to get publication quality graphs using R on Ubuntu. I encounter lots of problems in using cex to control font size: for instance cex=1.5 results in very blocky characters. I then tried to use res=1200 while creating a PNG file, hoping that th

Re: [R] Sweave: looping over mixed R/LaTeX code

2008-06-13 Thread Jeffrey Horner
Stephan Kolassa wrote on 06/13/2008 03:22 AM: Dear guRus, I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the "1,2,3" comes from

Re: [R] Calling R from C - part way there but need a push!

2008-04-30 Thread Jeffrey Horner
Maximillian Murphy wrote on 04/29/2008 11:19 AM: Dear All, I've read the manual on "Writing R Extensions" and in particular the part on calling R from C. (Most of the manual is about calling C from R, not the other way around.) The good news is that I can now call _some_ R from C, specifi

Re: [R] XML write?

2008-04-29 Thread Jeffrey Horner
Alberto Monteiro wrote on 04/29/2008 08:37 AM: Is there any function to write a XML structure, after it was read using xmlTreeParse? Ex: library(XML) x <- xmlTreeParse("Irpf2008/aplicacao/dados/12345678901/12345678901.xml") # write it... Calling: library(help=XML) # or help(package=XML) li

Re: [R] Embedding fonts in pdfs

2008-04-18 Thread Jeffrey Horner
hadley wickham wrote on 04/18/2008 02:40 PM: > Hi all, > > I'm having problems embedding fonts in my graphics - and I've tried > embedFonts to no avail. I have a pdf file and pdffonts tells me: > > name type emb sub uni object ID > ---

Re: [R] R_alloc with structures with "flexible array members"

2008-03-05 Thread Jeffrey Horner
C ** >> > >> > >> > I then do >> > gcc -std=gnu99 -Wall -I/usr/share/R/include -I/usr/share/R/include >> > -L/usr/lib/R/lib -lR ex7.c >> > >> > and the ./a.out segfaults when I use R_alloc (not with

Re: [R] R_alloc with structures with "flexible array members"

2008-03-05 Thread Jeffrey Horner
Ramon Diaz-Uriarte wrote on 03/05/2008 04:25 AM: > Dear All, > > In a package, I want to use some C code where I am using a structure > (as the basic element of a linked list) with flexible array members. > Basically, this is a structure where the last component is an > incomplete array type (e.g

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Jeffrey Horner
Tristan Casey wrote on 02/29/2008 03:37 AM: > Well that is certainly good news if write.csv output can be stored directly > to a character vector! > > I have tried to specify a vector within the file="" argument for example; > > write.csv(a,file="b") where b is a preexisting character vector >

[R] RFC for package PopCon: a popularity contest for R and packages

2008-02-14 Thread Jeffrey Horner
(I posted this to the R-devel list yesterday, but I thought others on this list would be interested, so sorry for those who get it twice.) Hello all, I've developed a prototype package called PopCon (short for popularity contest), a package for tracking the popularity of R and its packages. I'

Re: [R] advice requested re: building "good" system (R, SQL db) for handling large datasets

2008-02-06 Thread Jeffrey Horner
Richard Pearson wrote on 02/06/2008 06:25 AM: > Hi Thomas [...] > With databases, one issue that might be relevant is whether you want to > store data in tables (e.g. one table to store one data.frame) that can > subsequently be manipulated in the DB, or to store R objects as R > objects (e.g. a

Re: [R] An "R is slow"-article

2008-01-09 Thread Jeffrey Horner
I hazard to say that the author of that blog post isn't using the time he saved from writing his analyses in C very efficiently. I wonder how long it took him to write it in C in the first place, even to setup the testing of C against R, or to write the blog post. He didn't say. Jeff Armstron

Re: [R] Implementing R through Oracle

2007-11-05 Thread Jeffrey Horner
jah wrote on 11/05/2007 02:41 PM: > I have looked through all the ROracle documentation, R-help, R-dev, Googled > the world and still cannot figure out this issue. Everything I read it is > about connecting to an Oracle database and pulling data, processing it, and > then pushing it back to Oracle.

Re: [R] using sprintf with dates

2007-10-02 Thread Jeffrey Horner
stephen bond wrote on 10/02/2007 08:36 AM: > hello, > > Please help with using sprintf with character variables: > The following does not produce what i intended > > foot=function(){ > str1=format(Sys.Date,"%Y%m%d") > sprintf("99%-4s%s","nm",str1) > } > > I wanted to have "99nm 20071002" as