similar to: Command Line Arguments

Displaying 20 results from an estimated 7000 matches similar to: "Command Line Arguments"

2009 Apr 22
2
Returning Variables in R to Linux Shell
If I have an R script that I am executing from a command line in linux, do you know how I can return the value of the variable in my R script to the linux environment without writing it to a file in my R script and then reading the file through cat? For example, if I had a simple one line R script that just did string <- 'TEST', when I call /usr/local/bin/R
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
2009 Nov 10
1
do.call and timeSeries
Does anyone know why the following code hangs on the do.call, but works fine when I either comment out the require(timeSeries) or only do 2 levels of a for loop instead of 3? Thanks, Andrew Bierbryer require(timeSeries) num <- 1 x.list <- list() for ( i in 1:10 ) { for ( j in 1:20 ) { for ( k in 1:30 ) { x.list[[num]] <- cbind(num,10)
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
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
2007 Mar 12
1
Problem with installation of littler-0.0.10. under Free BSD 6.2
MyBSD% ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking build system type... i386-unknown-freebsd6.2 checking host system type... i386-unknown-freebsd6.2 checking for a BSD-compatible install...
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.
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
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 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
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
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:
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
2018 Aug 01
2
autoremove_
When I upgraded my ubuntu 18.04 system today, I got to my surprise: ----------------------------------------------- goran at M6800:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: littler r-cran-littler r-cran-pkgkitten Use
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,
2008 Oct 14
1
problem with update.packages (PR#13161)
On 14 October 2008 at 09:39, Simon Blomberg wrote: | Hi, is anyone else getting this error? Could this be a bug?: | | > update.packages(ask=FALSE) | Error in read.dcf(pkgpath, fields = fields) : | Line starting 'unix; ...' is malformed! | | > sessionInfo() | R version 2.8.0 RC (2008-10-12 r46696) | x86_64-pc-linux-gnu Confirmed in plain R using the same package built this
2008 Oct 14
1
problem with update.packages (PR#13161)
On 14 October 2008 at 09:39, Simon Blomberg wrote: | Hi, is anyone else getting this error? Could this be a bug?: | | > update.packages(ask=FALSE) | Error in read.dcf(pkgpath, fields = fields) : | Line starting 'unix; ...' is malformed! | | > sessionInfo() | R version 2.8.0 RC (2008-10-12 r46696) | x86_64-pc-linux-gnu Confirmed in plain R using the same package built this
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
On Thu, 6 Jun 2024 10:49:23 +0300 Omnis ludis - games via samba <samba at lists.samba.org> wrote: > I added a private directory, but this did not fix the problem, and > for some reason the other path still appears > testparm -v | grep private > Load smb config files from /opt/samba/etc/smb.conf > Loaded services file OK. > Weak crypto is allowed by GnuTLS (e.g. NTLM as a
2011 Mar 23
1
How identify args into R, sent from a command line.
Hi, For example, I have several variables in php, like var1 = 1, 2, 3, 5, 6 var2 = 3, 1, 8 var3 = 8, 10, 4, 0, 9, 1 I sent the arguments to R, with this line: '/usr/bin/R --vanilla --slave --args '.$var1.' '.$var2.' '.$var3.' < script.r' In my "script.r" I can read the arguments whit this line: args=(commandArgs(TRUE)) args=as.numeric(args) args
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