search for: rjython

Displaying 9 results from an estimated 9 matches for "rjython".

Did you mean: jython
2011 May 17
5
Email out of R (code)
Hi all, I thought I would post code to send an email out of R. The code uses Grothendieck and Bellosta's interface package rJython for executing Python from R. The code itself provides basic email functionality for email servers requiring authentication. It should be easy to extend it (e.g., for sending attachments). I hope it's useful. require(rJython) rJython <- rJython() rJython$exec( "import smtplib" ) rJ...
2013 Sep 12
1
problem with rJython and modules
Dear R People: I have been experimenting with rPython, rSymPy, and rJython. Here is my latest snag: > library(rJython) Loading required package: rJava Loading required package: rjson > library(rSymPy) > rJython <- rJython() > x <- "x" > y <- "y" > rJython$exec("from sympy import *") Error in .jcall("RJavaTool...
2011 Sep 14
1
rJython matrix message
...st have authentication and be sent via an R script. I'm almost there! Here is where I am at: I collect long error message lines in 'errs', which is a matrix. Then I collapse them into a character vector via: errs = paste(errs, collapse = "") Then I send that in a email via rJython. The message is sent to an Microsoft Outlook address like this: mail = c( ....etc... paste("msg = MIMEText('",errs,"')",sep=""), ...etc....) ...etc... [the rest of the rJython stuff to send a message omitted here] jython.exec(rJython,mail) The problem: The...
2011 Dec 11
2
Encoding y (r)Jython.-
Hola, Tengo un problemillo con el encoding de unas palabras y trabajarlas en R por medio de rJython. Os explico: cuando quiero utilizar cualquier dato que contenga acentos o eñes o cualquiera de estos caracteres que no usan los angloparlantes obtengo un error. Ejemplo, en R: > jython.call(rJython,''ascii'',''señoría'') Error en jython.exec(rJython, jython.comm...
2011 May 24
4
"Alpha testers" para el paquete rPython
Hola, ¿qué tal? Estoy buscando "alpha testers" para mi paquete rPython. El paquete es la evolución natural de rJython, un paquete de R que permite llamar a Jython, el dialecto de Python que corre sobre la máquina virtual de Java, desde R. rPython permite llamar al verdadero Python. Funciona perfectamente en mi máquina, pero necesito ver qué problemas de instalación y uso aparecen en otras plataformas y con otras...
2011 Aug 29
1
character vector to text with returns
...In other words, I need to convert a character vector to a single string with carriage returns for each row. Functionally, I'm attempting to send an email of a character vector in a way that is readable in the email body. I can only input one string as the message body parameter. I'm using rJython to send the email because I need authentication. Thanks! [[alternative HTML version deleted]]
2010 Dec 12
1
R <-> Haskell
...uot;); /* this is Haskell code */ printf("%d\n", *p); hs_exit(); } That said, i don't think it will be that difficutl. But I imagine the hardest part of this will be getting the memory management for garbage collection right. I thought I would start by looking at how the rJava or rJython packages handle memory. If anyone has pointers or advice on integrating R's garbage collection with another language's garbage collection, I'd welcome suggestions and warnings about pitfalls. Thanks, Jason -- Jason E. Aten, Ph.D. j.e.aten@gmail.com [[alternative HTML version delete...
2011 May 19
0
Asciidoc toolchain for vignettes
...thinking of moving to using asciidoc for vignettes. As part of doing so, it would be nice to have an R package with all the pieces preconfigured in order to let others build the vignettes without a lot of configuration work. Conceptually, the following combination would work: * rJava package * rJython package * ascii package for Sweave processing of original asciidoc source * asciidoc python scripts for asciidoc to docbook conversion * Dobudish set of Java and XML/XSL files for docbook to PDF (or other formats) Does anyone have better suggestions on components to use? If anyone else is doing s...
2010 Jul 18
6
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week New packages ------------ * allan (1.0) Alan Lee http://crantastic.org/packages/allan Automates Large Linear Analysis Model Fitting * andrews (1.0) Jaroslav Myslivec http://crantastic.org/packages/andrews Andrews curves for visualization of multidimensional data * anesrake (0.3) Josh Pasek http://crantastic.org/packages/anesrake This