similar to: R as a scripting engine

Displaying 20 results from an estimated 700 matches similar to: "R as a scripting engine"

2011 Jul 29
4
scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?
Dear R folks, wanting to compare different implementations of a solution I want to script it to iterate over the different implementations. Is there a way to do this in the R shell/command line? $ more /tmp/iterf.r f1 <- function(n = 100000, l = 100000) { z = n + l } f2 <- function(n = 100000,
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
2010 Jan 30
2
Stop packages and datasets to be loaded on startup.
Hi. I would like to know how to start an embedded R session, and avoid datasets and the standard library packages to be loaded on startup. I've been looking at littler's code (so this is partly a question to Dirk Eddelbuettel...): > /* We don't require() default packages upon startup; rather, we > * set up delayedAssign's instead. see autoloads(). >
2007 Nov 17
1
littler usage
Hi, I've been using r (the little, but sweet one!), and recently found out about the magic argv vector of the rest of arguments passed to it. How can we process an argument that represents elements of a vector: $ r littler_ex.R 14 '3, 2' Error in ff * ss : non-numeric argument to binary operator where: ,-----[ cat ~/scripts/R/littler_ex.R ] | ff <- as.numeric(argv[1]) | ss
2007 Apr 01
2
commandArgs usage and --args invokation
Dear R experts: I am a bit stymied by how the argument picking-off works in R batch file usage. $ cat commandArgs.R cat(" Command Line Arguments were ", commandArgs(), "\n"); $ /usr/bin/R CMD BATCH commandArgs.R --args 1 2 3 $ /usr/bin/R --args 1 CMD BATCH commandArgs.R ... I am now getting into interactive mode ?! I guess it really is skipping the rest of the command line
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
2012 Sep 11
2
R equivalent of python module structure and functionality?
summary: how to structure an R file such that it can be both 1. used as a script via, e.g., (from OS commandline) $ Rscript foo.r bar=baz 2. imported and called as a function via, e.g. (from R commandline) > source('./foo.r) > foo(bar='baz') ? I'm looking for the 'R equivalent' of how python supports this usecase. details: As discussed in the thread beginning
2008 Apr 24
2
r won't start: "r: symbol lookup error: r: undefined symbol: R_Visible" (PR#11265)
Full_Name: Jakob Stoeger Version: 2.7.0 OS: ubuntu 7.10 Submission from: (NULL) (137.248.74.38) Hi! I hope, it is justified to write this email... I'm relatively new to linux, and haven't worked with r, yet, so please pardon any things I do not know... I tried installing r on my computer, and didn't manage to get the program running. After having installed littler, typing r into
2007 Jan 04
1
littler+dget+stdin -> segmentation fault
Hi, I'm trying to write a series of pipes using littler, and I get the following behaviour: Sorry if I'm just doing something witless, I'm new to R. I'm using the latest versions from debian testing (2.4.0 and 0.0.8). $ r -e 'a<-dget(file=stdin()); print(a)' ?list(a=2) Segmentation fault In R itself this works: > dget(file=stdin()) ?list(a=2) $a [1] 2 As do (from
2006 Nov 04
2
can update.packages Debian package files?
Hi, I have searched the archive for the solution of this question, but couldn't find anything, so I thought I would ask here. I am using R on a Debian (testing) system. Many of the R packages I use are installed as .deb packages, those which are not available in this format I install using install.packages. When calling update.packages, sometimes the R repository version is more recent
2006 Nov 04
2
can update.packages Debian package files?
Hi, I have searched the archive for the solution of this question, but couldn't find anything, so I thought I would ask here. I am using R on a Debian (testing) system. Many of the R packages I use are installed as .deb packages, those which are not available in this format I install using install.packages. When calling update.packages, sometimes the R repository version is more recent
2018 Aug 02
2
Why is rstudio not in Ubuntu repo or PPA?
Thank you so much for the explanation, JJ! It is very kind of you to give such detail and transparency. I am highly appreciative of it. Kind regards, Xu On Wed, Aug 1, 2018 at 4:50 PM, JJ Allaire <jj at rstudio.com> wrote: > What keeps happening to us is that we end up requiring older or patched > versions of Qt, which makes it challenging to be synced to whatever version > of Qt
2012 Aug 27
2
littler and rJava
Hello list, I'm having some difficulty getting rJava to load in littler. Even after a R CMD javareconf and a reinstall of littler, I get this: jlaing at xenon:~$ r -e "require(rJava)" Loading required package: rJava Loading required package: methods Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable
2010 Aug 07
3
How to start R
Hi folks, Just finished installing R on Ubuntu 10.04, running on a VM, download following packages on repo; r-base littler r-cran-plotrix r-cran-qtl r-cran-rggobi But I could not get R started. r is on /usr/bin/r On console evoking it just hanging there. Any additional packages I need to install? Thanks B.R.
2019 Jan 06
4
Failed to install RQuantLib in Ubuntu machine
Hi, <This issue was previously posted in R-help, but advised to post here as a more relevant group> I was trying to install RQuantLib in my Ubuntu machine which failed with below information : *> install.packages('RQuantLib', repos='http://cran.rstudio.com/ <http://cran.rstudio.com/>', INSTALL_opts = c('--no-lock'))* *Installing package into
2008 Feb 05
2
gc() and memory efficiency
I have a program which reads in a very large data set, performs some analyses, and then repeats this process with another data set. As soon as the first set of analyses are complete, I remove the very large object and clean up to try and make memory available in order to run the second set of analyses. The process looks something like this: 1) read in data set 1 and perform analyses rm(list=ls())
2011 Dec 12
1
littler: Use for batch processing of data sets: How to pass filename?
Dear R folks, I have several data sets I want to process automatically using R. I found littler [1] and thought this will do the trick. 1. Read in data file to a data frame using `scan()`. 2. Do linear regression. 3. Write the data and the coefficients back to a file. #!/usr/bin/env r if (is.null(argv) | length(argv)!=1) { cat("Usage:
2019 Jan 07
2
Runnable R packages
On Mon, 7 Jan 2019 at 22:09, Gergely Dar?czi <daroczig at rapporter.net> wrote: > > Dear David, sharing some related (subjective) thoughts below. > > You can provide your app as a Docker image, so that the end-user > simply calls a "docker pull" and then "docker run" -- that can be done > from a user-friendly script as well. > Of course, this requires
2008 Sep 02
1
R_Visible???
Hello list I have problems with little (see Debian package, r. instead R), I get an error message relate with the symbol R_Visible, it say that it is unknown. The same error I got from the Front-off or IDE for KDE (see debian packages, I really don't remember the name., it is rk... and else) How to solve this problem??? What is this symbol (R_Visible) is an internal variable???
2008 Jan 12
2
Embedding R
hello all, is there somewhere a comprehensive documentation for the (C) functions used for embedded R? (e.g. the functions which are used in the directory \tests\Embedding in the R source) or Are there somewhere many more examples for this? (especially handover of data between C and embedded R) thanks, Alex --