Re: [R] Rscript fails where Rterm works

2014-06-13 Thread Bond, Stephen
Hadley, You are a genius. Stephen B -Original Message- From: Hadley Wickham [mailto:h.wick...@gmail.com] Sent: Thursday, June 12, 2014 5:18 PM To: Bond, Stephen Cc: r-help@r-project.org Subject: Re: [R] Rscript fails where Rterm works Explicitly load the methods package: library

Re: [R] Rscript fails where Rterm works

2014-06-12 Thread Hadley Wickham
Explicitly load the methods package: library(methods) Hadley On Thu, Jun 12, 2014 at 2:22 PM, Bond, Stephen wrote: > I have a script which loads > > library(XLConnect) > wb <- loadWorkbook("wbname") > > the code works without errors when run from ESS which uses > R version 3.0.1 (2013-05-16) --

Re: [R] Rscript fails where Rterm works

2014-06-12 Thread Jeff Newmiller
You seem to be using different versions of R for these two trials. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] Rscript fails where Rterm works

2014-06-12 Thread Bond, Stephen
I have a script which loads library(XLConnect) wb <- loadWorkbook("wbname") the code works without errors when run from ESS which uses R version 3.0.1 (2013-05-16) -- "Good Sport" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i386-w64-mingw32/i386 (32-bit) But fails whe