similar to: : source R-script interactively outside R

Displaying 20 results from an estimated 10000 matches similar to: ": source R-script interactively outside R"

2009 Jul 17
2
R: extract data.frames from a list
Dear useRs and developeRs, I am struggling with a simple but not obviously solvable issue. Suppose I have the following list of data.frames called 'tmp': a <- data.frame(a=rnorm(10),b=letters[1:10]) (tmp <- list(a,a[1:4,],a[1:7,])) It is known that all data.frames in this list have the same number of columns (and this is a good thing). I want to build a bigger data.frame
2020 Feb 21
2
R --interactive -e 'browser()'
I would like to have a mode where I can run some R code in an executable script, like with Rscript, but interactively, so that e.g. 'browser()' works. From the manual page it looks like this should work: R --interactive -e 'source("script.R")' or we could shorten it to: R --interactive -e 'browser()' However, it seems that --interactive causes -e
2010 Jan 21
1
Rscript question
Hi, I have some code I run interactively through the R interpreter and it works fine. I then run it as a script with Rscript and I get an error. The error is coming when Rscript builds a model matrix. Here is the Rscript code : #!/usr/lib/R/bin/Rscript --verbose require(MASS) options(contrasts = c("contr.treatment", "contr.poly")) .... form <- as.formula(paste(ef.var,
2008 Jul 03
1
'as.Date' conversion of classes POSIX*t (problem/feature)?
Hi, I'm working with objects of classes "Date","POSIXlt" and "POSIXct" and still having some Date/Time-related concepts unclear. In the documentation of "as.Date" one can find: "The 'as.Date' methods accept ... '"POSIXlt"' and '"POSIXct"'. (The last are converted to days by ignoring the time after
2012 Sep 10
1
Rscript installing packages
Hi there I have an Rscript and I am looking for a way to install a package non-interactively. In Rscript {Utils}, I saw an example which does something like this, however this does not seem to work for my particular example. I am trying to install the following package in an Rscript (without switching to interactive mode). res <- try(install.packages("DEoptim")) if(inherits(res,
2009 Jun 18
1
Calling library functions from outside R
I develop quite a bit of R code that I tend to distribute, or let other people embed in their software. One of the things I'd really like to do is find a way to load an R library I've developed, and call one function with arguments. Currently, I achieve that by building a separate R client file, which reads in the command line arguments, loads the library, and calls the main
2024 Jan 06
2
tools::startDynamicHelp(): Randomly prevents R from exiting (on MS Windows)
ISSUE: On MS Windows, running cmd.exe, calling Rscript --vanilla -e "port <- tools::startDynamicHelp(); port; port <- tools::startDynamicHelp(FALSE); port" will sometimes stall R at the end, preventing it from existing. This also happens when running R in interactive mode. It seems to stem from calling tools::startDynamicHelp(FALSE). Before filing a formal bug report, can
2009 May 04
4
Surface for R outside of R
Hi all, i am new here and this is my first posting. My coding experience in R ist okay, but I have a problem which is related to another aspect of R. I am searching for a surface which execute my commands in R via a click on a button OUTSIDE of R. Concrete: I will write some programs in R and want to execute this files outside of R, so I don't want to start R eyery time if i want an
2010 Dec 01
1
[LLVMdev] RFC: Exception Handling Proposal Revised
responses to the Exception Handling Proposal are "all over the map", including at least.... 1. what are the semantics of the various high level languages, and how are these constructs to be lowered into an IR 2. what should the IR be 3. what should the final output code format and layout be, and to what extent can/should this be compatible with any existing runtime environments
2011 Dec 15
1
Am I misunderstanding loop variable assignment or how to use print()?
Given this interactive session: > an<-ls(pat="anova.ag.m2529") > an [1] "anova.ag.m2529.az" "anova.ag.m2529.can" "anova.ag.m2529.fl" > print(anova.ag.m2529.az) Analysis of Variance Table Response: year Df Sum Sq Mean Sq F value Pr(>F) time 1 14.823 14.8235 10.598 0.004392 ** Residuals 18 25.177
2009 Dec 10
2
multiuser rsync environment
Dear List, I am looking for a solution of the following issue. We are two users managing our homepage through subversion in order to synchronize each others work. We upload everything to the server via the following command in rsync: rsync -avzt --exclude ".svn" --exclude "*~" -e ssh . webserver at webserver.org:/path/to/the/webpage Everything works just fine except
2005 Mar 18
4
Is a .R script file name available inside the script?
Hi, if we have a file called Rscript.R that contains the following, for example: x <- 1:100 outfile = "Rscript.Rout" sink(outfile) print(x) and then we run >> source("Rscript.R") we get an output file called Rscript.Rout - great! Is there an internal variable, something like .Platform, that holds the script name when it is being executed? I would like to use
2008 Jul 01
2
ManageSieve v0.10.3 released for Dovecot 1.1.1
Hello Dovecot users, I have formulated a new release that addresses an important ManageSieve compilation issue that arises when compiling with GCC 4.3 (as used by the new Debian Lenny). Change Log v0.10.3 ------------------- * Removed erroneous inline declarations that caused compiler warnings. GCC 4.3 turns out to fail entirely as reported by Joel Johnson. * Fixed auto-detection
2007 Apr 07
3
FLAC: file extension question
2007/4/7, Alex Jones <alex@weej.com>: > > On Sat, 2007-04-07 at 17:49 +0200, Harry Sack wrote: > > Hi, > > > > I have read somewhere there exist 2 extensions for FLAC files: .flac > > and .fla > > Why is this and what's the difference between them? > > Nothing. File name extensions don't mean anything. Don't be confused > into thinking
2009 Sep 06
2
How to wait for a user response in Rscript?
Hi, In 'example(barplot)' running in R, I see 'Hit <Return> to see next plot:', then R waits for my input. I am wondering how to wait for a user response in Rscript. Regards, Peng
2013 Oct 18
0
[LLVMdev] Contribute a new precise pointer analysis to LLVM
On Fri, Oct 18, 2013 at 7:27 AM, lian li <lianli at gmail.com> wrote: > Hi Daniel, > > I want to clarify that our analysis is not based on CFL-reachability. > We apply CFL-reachability to matching context information where the > exist from a function to a call-site must match > the entry from the corresponding call-site. Yes, sorry, I pulled the wrong quote, it was late.
2013 Apr 23
2
Frustration to get help R users group
Dear R users/developers I requested help to solve the problem of formulating Multivariate Sample selection model by using Full Information Maximum Likelihood (FIML)estimation method. I could not get any response. I formulated the following code of FIML to analyse univariate sample selection problem. Would you please advise me where is my problem library (sem) library(nrmlepln) Selection
2008 Oct 02
4
Load a program at the front end
I want to run a R program, prog.R, interactively. My question is, is there a way I can start prog.R on the shell terminal when invoking R, instead of using source() inside R? TIA, Gang
2005 Oct 11
4
Q: Suggestions for long-term data/program storage policy?
Dear list, we are a statistical/epidemiological departement that - after a few years of rapid growth - finally is getting around to formulate a general data storage and retention policy - mainly to ensure that we can reproduce results from published papers/theses easier in the future, but also with the hope that we get more synergy between related projects. We have formulated what we
2007 Sep 20
1
Locale problems with too-fancy quotes in Windows CMD.exe
'Fancy' quotes are displayed incorrectly when running R from Windows' CMD shell (Start -> Run -> CMD; latin small letter ae and capital letter AE; as a script or interactively)). Is this a system configuration issue, and if so how can I correct it? C:\R>Rscript -e sQuote('x') [1] "?x?" C:\R>R --version R version 2.6.0 beta (2007-09-20 r42920) Copyright