similar to: Prevent saving the workspace while running a script in batch mode

Displaying 20 results from an estimated 3000 matches similar to: "Prevent saving the workspace while running a script in batch mode"

2008 Jun 15
1
randomForest, 'No forest component...' error while calling Predict()
Dear R-users, While making a prediction using the randomForest function (package randomForest) I'm getting the following error message: "Error in predict.randomForest(model, newdata = CV) : No forest component in the object" Here's my complete code. For reproducing this task, please find my 2 data sets attached ( http://www.nabble.com/file/p17855119/data.rar data.rar ).
2008 Apr 26
2
Calling a stored model within the predict() function
Hi all, First of all, I'm a novice R user (less that a week), so perhaps my code isn't very efficient. Using the MBoost package I created a model using the following command and saved it to a file for later use: model <- gamboost(fpfm,data=SampleClusterData,baselearner="bbs") # Creating a model save(model,file="model.RData") # Saving a model After this, during a
2003 May 12
1
problems with Rcmd BATCH (PR#2965)
Hello, I have a test file that runs OK with > Rterm.exe --no-restore < filename.R When I try > Rcmd BATCH filename.R I get the following error message: Can't locate R/Utils.pm in @INC (@INC contains: C:\PROGRA~1\R\rw1070\share\perl c:/Perl/lib c:/Perl/site/lib .) at C:\PROGRA~1\R\rw1070/bin/BATCH line 22. BEGIN failed--compilation aborted at C:\PROGRA~1\R\rw1070/bin/BATCH
2009 May 01
1
locating rcmd.exe through a batch script
Dear R-sians! The following command works fine on Dos Prompt, but not in a windows batch script... dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I "2.8.1" how do I implement the above in a windows batch script? I tried to use: for /F "usebackq tokens=*" %%i in (`dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I
2003 Jan 08
3
Errors running R in Batch mode under Win2000
I have made many different attempts to run a R program in Batch mode. I run a DOS command like: C:\Progra~1\R\rw1061\bin\rterm.exe -q --no-restore --no-save myprogram.R out.txt What happens: 1. DOS Shell starts up well 2. R starts 3. I get the messages: "ARGUMENT 'myprogram.R' __ignored__" "ARGUMENT 'out.txt' __ignored__" 4. R Shell is ready to
2009 Jan 16
2
Missing file to run Rcmd batch on Windows
Hi, I'm trying to run an R script using Rcmd Batch from the command line on a Windows Vista machine. I am using R version 2.8.1. I installed the batch files 4-3 found at http://cran.r-project.org/contrib/extra/batchfiles/ and added them to my path. I also had to install the latest version of perl (it's Strawberry perl if that makes a difference) and have added this to my path. Now when
2005 Dec 31
1
New R folder names bring out Windows batch file bug
Just wanted to point out to anyone trying to write Windows batch files that the new R-whatever folder names bring out a bug in Windows batch files related to short file names. In particular, this code (which is to the best of my understanding, valid) gives an error. The solution appears to be to use long file names, and make sure you quote them, rather than short ones. That does require that R be
2005 Jan 28
1
Windows Batch File
Hiya, I have read the FAQ for windows and read point 2.10. I setup a dos batch file which contains the following line: C:\progra~1\R\rw2001\bin\Rterm.exe --vanilla I then tried: R CMD BATCH --argument myscript.R result.out then it started R. I thought by running R CMD BATCH executes R non-interactively. I am working on a Windows XP. I tried it on a Mac OSX and that worked fine. So I'm not
2007 Jul 13
1
Saving workspace data
Hi I imported a lot of text-files with R and saved them by using: save(list=ls(),file="Grunddaten.Rdata") After that I wanted to check my saved data and wrote source("Grunddaten.Rdata") This gives me an error: Error in parse(file, n = -1, NULL, "?") : Syntax error at 1: Can somebody tell me what I am doing wrong (I am using R.2.4.1)? Renger
2013 Nov 17
1
Saving Workspace State
Is there a way to save the position and workspace locations of at least terminals on logout? I want to have many workspaces with 2-3 terminals each for editing code and scripts and ssh and so on. The System > Preferences > Startup Applications > Options > Automatically remember running applications when logged out doesn't work. And gnome-session-save doesn't work either. I
2003 Oct 08
1
Saving workspace image
Hi folks, On quitting R with q(), is it possible to save the workspace to a directory other than the one R was started from? (I sometimes have a project "master" directory with the major R code and data in that directory, but divisions of the project having their specific stuff in sub-directories. So if I quit while running a sub-project, I'd like to save the workspace back into
2008 Jan 21
1
Problems saving the workspace image
Hi! I use R with Windows for a long time. In the last week I change to Windows Vista. Now I can´t save the workspace image when I exit R. The system presents the following message “Unable to open .Rhistory”. Does anyone can help me? I thank you in advance, Ana [[alternative HTML version deleted]]
2008 Jul 25
1
Saving a workspace with "extras"?
Hi everyone, I hope there's a simple way to achieve what I want, but I haven't found the way. I do microarray analysis using R and a number of packages as well as some functions created my myself. When I save the workspace, it saves all the data structures, that's great... But when I click (I'm on Windows XP, if it matters) on teh resulting .RData file, I have to reload
2006 Feb 03
2
(newbie) Saving the workspace in .txt format
(newbie question) How do I save the workspace in Windows text format (with the file extension .txt)? Also, having saved it and edited it, how do I load it back into the workspace? The setup is: Windows XP Home Edition Service Pack 2 R 2.2.0 English language Administrator privileges are enabled Tom Jones, a veteran computer professional who is a newbie to R
2002 Jun 13
1
saving a global workspace?
hi all, i can't call my custom R function. i'm using R 1.3.1 on Solaris with the SJava pkg from www.omegahat.org. This package let's me call R functions from Java, and it works great. i wrote a custom R function and saved it in the workspace. in my homedir, i noticed the file named .RData was created. i also noticed my workspace is ONLY restored if the current working dir (when i
2004 Feb 21
3
saving variables created by functions in the workspace
Hello , just a simple question from a beginner: I write the function: plotsinx <- function() { x<-seq(0,2*pi,0.01) sinx<-sin(x) plot(sinx) } I recall it: plotsinx() and the plot works properly. but then in the workspace if I want to look at the values of sinx the following error is displayed: Error: Object "sinx" not found. How to save the variables created by the function on
2010 Jul 05
1
Linux-Windows problem
Dear All, I faced the following problem. With the same data.frame the results are different under Linux and Windows. Could you help on this topic? Thanks in advance, Ildiko Linux: > d = read.csv("CRP.csv") > d$drugCode = as.numeric(d$drug) > cor(d, use="pairwise.complete.obs") PATIENT BL.CRP X24HR.CRP X48HR.CRP drug drugCode PATIENT NA
2018 Apr 25
0
Zero errors : Bug in my R code ?
Dear R-experts, I guess I have a problem with my fast function (fast tau estimator) here below. Indeed, zero errors look highly suspicious. I guess there is a bug in my R code. How could I correct my R code ? # install.packages( "robustbase" ) # install.packages( "MASS" ) # install.packages( "quantreg" ) # install.packages( "RobPer" ) #
2018 May 21
2
Bootstrap and average median squared error
Dear R-experts, I am trying to bootstrap (and average) the median squared error evaluation metric for a robust regression. I can't get it. What is going wrong ? Here is the reproducible example. ############################# install.packages( "quantreg" ) library(quantreg) crp <-c(12,14,13,24,25,34,45,56,25,34,47,44,35,24,53,44,55,46,36,67) bmi
2012 May 16
2
[LLVMdev] clang looking for gold plugin when used with '-emit-llvm' option
Hi All, I built the binaries from the 3.1 final tag (http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final/ etc) as below: > ../llvm/configure --enable-targets=host-only --prefix=/local/mnt/workspace/ashoknn/crd/neo/llvmsvn/build/bin > make install I notice that I can compile a program using clang as below: > ashoknn at