Re: [R] help with sockets in R

2010-09-22 Thread Christopher Bare
in > the R sources. > > Please do note that the posting guide asked you for 'at a minimum' > information (which includes the locale) and a reproducible example. > > On Tue, 21 Sep 2010, Christopher Bare wrote: > >> Hi R gurus, >> >> I'm trying

[R] help with sockets in R

2010-09-21 Thread Christopher Bare
Hi R gurus, I'm trying to use a ReSTful web service from within R. Specifically, I need to make HTTP PUT requests. I'm able to make the request and that goes well enough, but I'm having trouble properly consuming the HTTP response. The problem comes in when I'm trying to parse out the response bo

Re: [R] Error in untar2(tarfile, files, list , exdir) : unsupported entry type ‘x’

2010-05-20 Thread Christopher Bare
For posterity, this thread was continued on the R-SIG-Mac mailing list under the same subject. Prof. Brian Ripley was kind enough to point out an easy work around: R CMD INSTALL now uses the internal untar() in package utils: this ensures that all platforms can install bzip2- and xz-compressed tar

Re: [R] Error in untar2(tarfile, files, list , exdir) : unsupported entry type ‘x’

2010-05-19 Thread Christopher Bare
Hi, I'm starting to think this is a Mac OS X Snow Leopard specific issue. The GNU docs on the tar format say the type flag 'x' means this: #define XHDTYPE 'x'/* Extended header referring to the next file in the archive */ Maybe, OSX is putting some

[R] Error in untar2(tarfile, files, list , exdir) : unsupported entry type ‘x’

2010-05-19 Thread Christopher Bare
Hi R gurus, I'm getting the following error when trying to build and install an R package: Error in untar2(tarfile, files, list, exdir) : unsupported entry type ‘x’ I build the package like so: R --no-init-file CMD build mypackage Then try to install it: sudo R --no-init-file CMD INSTALL mypack

[R] RSQLite column names underscores

2009-09-27 Thread Christopher Bare
Hi, When I use RSQLite's dbWriteTable(...) function, the columns in the db table frequently end up having "__1" (two underscores and a one) added to them. The names are unique within the table and contain no weird characters. For example a "position" column from a data.frame was written to the DB

[R] Ruuid missing Gtk glib.dylib

2009-09-18 Thread Christopher Bare
d' Error in args(getuuid) : no function to return from, jumping to top level J. Christopher Bare Institute for Systems Biology __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

Re: [R] Split rownames into factors

2009-07-27 Thread Christopher Bare
Hi, I'm not an R expert, but I thought I'd give your question a shot anyway. First, it looks like you're starting with a matrix, rather than a list. Let's hope I guessed that right: > m = matrix(c(324, 65, 543, 23, 54, 8765, 213, 43, 65)) > rownames(m) = c('X1Jan08', 'X1Jun08', 'X1Dec08', 'X2Jan

[R] Specifying package dependencies

2009-07-24 Thread Christopher Bare
Hi, I'm trying to put together an R package. My library has dependencies on three other libraries: RSQLite, gaggle (a component of Bioconductor), and another package that is available as a download from the author's website. Is it possible to specify each of those dependencies in such a way that