Hello,
I'm curious to know how people are calling R from web applications (I've
been looking for Perl but I'm open to other languages). After doing a
search, I came across the R package "RSPerl", but I'm having
difficulties
getting it installed (on Mac OSX). I believe the problem probably has to do
with changes in R since the package release. Below you will see where the
installation process comes to an end. Does anyone have any suggestions, or
perhaps a direction to point me in?
Thanks in advance for your insight!
Chris
* Installing to library
'/Library/Frameworks/R.framework/Resources/library'
* Installing *source* package 'RSPerl' ...
checking for perl... /usr/bin/perl
No support for any of the Perl modules from calling Perl from R.
*****************************************************
Set PERL5LIB to
/Library/Frameworks/R.framework/Versions/2.5/Resources/library/RSPerl/perl
*****************************************************
Testing: -F/Library/Frameworks/R.framework/.. -framework R
Using '/usr/bin/perl' as the perl executable
Perl modules (no):
Adding R package to list of Perl modules to enable callbacks to R from Perl
Creating the C code for dynamically loading modules with native code for
Perl: R
modules: R; linking:
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Support R in Perl: yes
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating inst/scripts/RSPerl.csh
config.status: creating inst/scripts/RSPerl.bsh
config.status: creating src/RinPerlMakefile
config.status: creating src/Makefile.PL
config.status: creating cleanup
config.status: creating src/R.pm
config.status: creating R/perl5lib.R
making target all in RinPerlMakefile
RinPerlMakefile:5: /Library/Frameworks/R.framework/Resources/etc/Makeconf:
No such file or directory
make: *** No rule to make target
`/Library/Frameworks/R.framework/Resources/etc/Makeconf'. Stop.
[[alternative HTML version deleted]]
The R packages and projects for the web and R are listed here: http://www.lmbe.seu.edu.cn/CRAN/doc/FAQ/R-FAQ.html#R-Web-Interfaces On 8/30/07, Chris Parkin <Christopher.Parkin at tufts.edu> wrote:> Hello, > > I'm curious to know how people are calling R from web applications (I've > been looking for Perl but I'm open to other languages). After doing a > search, I came across the R package "RSPerl", but I'm having difficulties > getting it installed (on Mac OSX). I believe the problem probably has to do > with changes in R since the package release. Below you will see where the > installation process comes to an end. Does anyone have any suggestions, or > perhaps a direction to point me in? > > Thanks in advance for your insight! > > Chris > > * Installing to library '/Library/Frameworks/R.framework/Resources/library' > * Installing *source* package 'RSPerl' ... > checking for perl... /usr/bin/perl > No support for any of the Perl modules from calling Perl from R. > ***************************************************** > > Set PERL5LIB to > /Library/Frameworks/R.framework/Versions/2.5/Resources/library/RSPerl/perl > > ***************************************************** > Testing: -F/Library/Frameworks/R.framework/.. -framework R > Using '/usr/bin/perl' as the perl executable > Perl modules (no): > Adding R package to list of Perl modules to enable callbacks to R from Perl > Creating the C code for dynamically loading modules with native code for > Perl: R > modules: R; linking: > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > Support R in Perl: yes > configure: creating ./config.status > config.status: creating src/Makevars > config.status: creating inst/scripts/RSPerl.csh > config.status: creating inst/scripts/RSPerl.bsh > config.status: creating src/RinPerlMakefile > config.status: creating src/Makefile.PL > config.status: creating cleanup > config.status: creating src/R.pm > config.status: creating R/perl5lib.R > making target all in RinPerlMakefile > RinPerlMakefile:5: /Library/Frameworks/R.framework/Resources/etc/Makeconf: > No such file or directory > make: *** No rule to make target > `/Library/Frameworks/R.framework/Resources/etc/Makeconf'. Stop. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code. >
Hi Chris -- RWebServices provides a way to expose R functionality as (SOAP-based) web services. http://bioconductor.org/packages/2.0/bioc/html/RWebServices.html This might be more than you are looking for, and has not been tested on MacOS (which seems to be your platform). Martin "Chris Parkin" <Christopher.Parkin at tufts.edu> writes:> Hello, > > I'm curious to know how people are calling R from web applications (I've > been looking for Perl but I'm open to other languages). After doing a > search, I came across the R package "RSPerl", but I'm having difficulties > getting it installed (on Mac OSX). I believe the problem probably has to do > with changes in R since the package release. Below you will see where the > installation process comes to an end. Does anyone have any suggestions, or > perhaps a direction to point me in? > > Thanks in advance for your insight! > > Chris > > * Installing to library '/Library/Frameworks/R.framework/Resources/library' > * Installing *source* package 'RSPerl' ... > checking for perl... /usr/bin/perl > No support for any of the Perl modules from calling Perl from R. > ***************************************************** > > Set PERL5LIB to > /Library/Frameworks/R.framework/Versions/2.5/Resources/library/RSPerl/perl > > ***************************************************** > Testing: -F/Library/Frameworks/R.framework/.. -framework R > Using '/usr/bin/perl' as the perl executable > Perl modules (no): > Adding R package to list of Perl modules to enable callbacks to R from Perl > Creating the C code for dynamically loading modules with native code for > Perl: R > modules: R; linking: > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > Support R in Perl: yes > configure: creating ./config.status > config.status: creating src/Makevars > config.status: creating inst/scripts/RSPerl.csh > config.status: creating inst/scripts/RSPerl.bsh > config.status: creating src/RinPerlMakefile > config.status: creating src/Makefile.PL > config.status: creating cleanup > config.status: creating src/R.pm > config.status: creating R/perl5lib.R > making target all in RinPerlMakefile > RinPerlMakefile:5: /Library/Frameworks/R.framework/Resources/etc/Makeconf: > No such file or directory > make: *** No rule to make target > `/Library/Frameworks/R.framework/Resources/etc/Makeconf'. Stop. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code.-- Martin Morgan Bioconductor / Computational Biology http://bioconductor.org
Dear Chris, I use Python (http://www.python.org) in combination with Rpy (http://rpy.sourceforge.net/). Rpy enables you to use R commands inside Python, not the other way around. Works quite well, also for different R versions (I currently run R 2.5.1 under Linux). cheers, Paul Chris Parkin schreef:> Hello, > > I'm curious to know how people are calling R from web applications (I've > been looking for Perl but I'm open to other languages). After doing a > search, I came across the R package "RSPerl", but I'm having difficulties > getting it installed (on Mac OSX). I believe the problem probably has to do > with changes in R since the package release. Below you will see where the > installation process comes to an end. Does anyone have any suggestions, or > perhaps a direction to point me in? > > Thanks in advance for your insight! > > Chris > > * Installing to library '/Library/Frameworks/R.framework/Resources/library' > * Installing *source* package 'RSPerl' ... > checking for perl... /usr/bin/perl > No support for any of the Perl modules from calling Perl from R. > ***************************************************** > > Set PERL5LIB to > /Library/Frameworks/R.framework/Versions/2.5/Resources/library/RSPerl/perl > > ***************************************************** > Testing: -F/Library/Frameworks/R.framework/.. -framework R > Using '/usr/bin/perl' as the perl executable > Perl modules (no): > Adding R package to list of Perl modules to enable callbacks to R from Perl > Creating the C code for dynamically loading modules with native code for > Perl: R > modules: R; linking: > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > Support R in Perl: yes > configure: creating ./config.status > config.status: creating src/Makevars > config.status: creating inst/scripts/RSPerl.csh > config.status: creating inst/scripts/RSPerl.bsh > config.status: creating src/RinPerlMakefile > config.status: creating src/Makefile.PL > config.status: creating cleanup > config.status: creating src/R.pm > config.status: creating R/perl5lib.R > making target all in RinPerlMakefile > RinPerlMakefile:5: /Library/Frameworks/R.framework/Resources/etc/Makeconf: > No such file or directory > make: *** No rule to make target > `/Library/Frameworks/R.framework/Resources/etc/Makeconf'. Stop. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code. >-- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +31302535773 Fax: +31302531145 http://intamap.geo.uu.nl/~paul