similar to: Multiple assignments in one statement

Displaying 20 results from an estimated 10000 matches similar to: "Multiple assignments in one statement"

2004 Aug 18
3
R as shared library
Hello folks, I'm embarking on a project to embed R into the Apache web server, and I'd like your help. Currently, I'm looking for a way for R code to call back into a shared library from which the R shared library was loaded. Essentially, apache starts and loads mod_R.so which runs an initialization routine which calls Rf_initEmbeddedR() and the following code: /* override to
2005 Jan 21
2
Struggling with S3/S4 interface issues and External Pointers
I'm currently working on embedding R into the Apache2 webserver (with some positive results...), but I'm struggling to identify the best way to expose the apache data and functions to R. A couple of thoughts: In light of the recent discussion on "S3/S4 classes performance comparson", I'm leaning toward implementing the interface with S3 style classes. I appreciate
2006 Sep 26
4
New project: littler for GNU R
What ? ====== littler - Provides hash-bang (#!) capability for R (www.r-project.org) Why ? ===== GNU R, a language and environment for statistical computing and graphics, provides a wonderful system for 'programming with data' as well as interactive exploratory analysis, often involving graphs. Sometimes, however, simple scripts are desired. While GNU R can be used
2006 Feb 23
1
Utilizing the internet module
Hello all, I'd like to utilize the R_Sock* functions from R_ext/R-ftp-http.h in my R package. The intent is to use these in conjunction with R_serialize() to store R objects in a remote data store. I'm aware that version 2.2.1 of "Writing R extensions" explains that these may be undocumented and unstable, but I have a couple of questions: 1) are they platform independent?
2006 Oct 05
1
littler release 0.0.6
What ? ------ We are pleased to announce version 0.0.6 of littler What's new ? ------------ This version includes a bug fix or two as well as a number of small enhancements to the documentation. For OS X and the r/R confusion, our recommended suggestion is to call configure using either the --program-suffix=X or --program-prefix=Y option to have the binary and manual
2005 Jun 16
1
motivation for setRepositories and chooseCRANmirror
I have some questions and observations about these: Will these replace manually setting options(CRAN), which doesn't work in R-2.1.0? In R-2.1.0, setRepositories() looks to see if options("repos") contains a CRAN entry and will not override that CRAN entry even if the $R_HOME/etc/repositories file (which setRepositories reads from) contains a CRAN entry. Why is this? The user
2006 Jul 14
2
R as shell script
Hi, I am considering if I should invest in learning R. Based on the language definition and introductory documents, it seems nice. But now I am faced with a problem: I want to be able to run R programs easily from the unix shell, and write scripts that can automatically select R as the interpreter: #!/usr/bin/R cat("Hello world.\n") This of course doesn't work, because /usr/bin/R
2006 Jul 14
2
R as shell script
Hi, I am considering if I should invest in learning R. Based on the language definition and introductory documents, it seems nice. But now I am faced with a problem: I want to be able to run R programs easily from the unix shell, and write scripts that can automatically select R as the interpreter: #!/usr/bin/R cat("Hello world.\n") This of course doesn't work, because /usr/bin/R
2006 Mar 30
1
Writing character vectors with embedded nulls to a connection
Is this possible? I've tried both writeChar() and writeBin() to no avail. My goal is to serialize(ascii=FALSE) an object to a connection but determine the size of the serialized object before hand: sobject <- serialize(object,NULL,ascii=FALSE) len <- nchar(sobject) # # run some code here to notify listener on other end of connection # how many bytes I'm getting ready to send #
2010 Mar 04
1
mysqlWriteTable . error in your SQL syntax?
Hi, Can somebody advice on weird mysqlWriteTable bug. > mysqlWriteTable(conn, 'comparison',design2, row.names = F, overwrite=T) Error in mysqlExecStatement(conn, statement, ...) : RS-DBI driver: (could not run statement: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"condition"
2006 Feb 03
2
Infinite loop running Mod_R/Rapache
I installed mod_r according to the specifications, and have been trying to get the demo script to work correctly. I am running debian, the latest build of R, apache 2 with prefork mpm, and the latest mod_r. Is anyone else using this module successfully? I added: LoadModule R_module mod_R.so <Location /test/hello> SetHandler r-handler Rsource /var/www/html/test.R RreqHandler
2005 Apr 12
5
How allocate STRSXP outside of gc
Hi, I am trying to figure a way to allocate a string SEXP so that gc() won't ever collect it. Here is a little bit of a background. Suppose I want to write a .Call-callable function that upon each call returns the same value, say mkChar("foo"): SEXP getFoo() { return mkChar("foo"); } The above implementation doesn't take advantage of the fact that
2006 Mar 02
1
extracting RGB values from a colorspace class object
Greetings, After pouring over the documentation for the 'colorspace' package, I have not been able to figure out how the plot() method converts colorspace coordinates to RGB values for display on the screen. I am convert between colorspaces with the various as() methods... but cannot seem to find a way to extract RGB (i.e. for displaying on a computer screen) triplets from color space
2006 Mar 08
2
Wishlist - Give R a name that shows up in search engines ...
From: Dirk Eddelbuettel > > On 7 March 2006 at 10:55, Hin-Tak Leung wrote: > | I have given up on "R" with any topic on Google quite some time ago > | (because bits from fragmented postscript/pdf files show up, for > | example) - but using "r-devel" with topic normally gives me enough. > | YMMV. > > Nobody seems to have mentioned the RSiteSearch()
2006 Mar 03
2
Command-line editing & history
Hi all, Are there any plans to add more functionality to command-line editing and history editing on the command line? In MATLAB (I know, comparisons are odious ...), you can type "p" and up-arrow on the command line and scroll through the recently entered commands beginning with "p". This is a very useful feature and something that I believe is not replicated in R. Please
2005 Aug 02
0
[ANNOUNCE] mod_R: The R/Apache Integration Project
What is it? ----------- mod_R is a project dedicated to embedding the R interpreter inside the Apache 2.0 (and beyond) web server for the purpose of writing web applications in R. It's composed of three parts: mod_R: the Apache 2.0 module that implements the glue to load the R interpreter. RApache: the R package that provides the API for programming web applications
2005 Aug 02
0
[ANNOUNCE] mod_R: The R/Apache Integration Project
What is it? ----------- mod_R is a project dedicated to embedding the R interpreter inside the Apache 2.0 (and beyond) web server for the purpose of writing web applications in R. It's composed of three parts: mod_R: the Apache 2.0 module that implements the glue to load the R interpreter. RApache: the R package that provides the API for programming web applications
2006 Sep 29
1
Possible bug in Rcons_vprintf
In R-2-4-branch r39548, Rcons_vprintf is called from stdout_vfprintf when R_Outputfile is NULL. When called and output is greater than R_BUFSIZE, output is truncated to R_BUFSIZE. Here's a one-line fix: Index: src/main/printutils.c =================================================================== --- src/main/printutils.c (revision 39548) +++ src/main/printutils.c (working
2008 Jul 24
3
Should this PDF render correctly without font embedding?
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 with R 2.7.1 and R-trunk (r46103), both acrobat reader 8 and kpdf render it incorrectly. How
2010 Jul 02
2
Best way to determine if you're running 32 or 64 bit R on windows
Hi, Is this sufficient? if (.Machine$sizeof.pointer==4){ cat('32\n') } else { cat('64\n') } Or is it better to test something in R.version, say os? I'd like to use this to specify appropriate linker arguments when building the RMySQL windows package. Jeff -- http://biostat.mc.vanderbilt.edu/JeffreyHorner