Displaying 20 results from an estimated 7000 matches similar to: "problem with Rscript"
2010 Oct 04
1
source package build/installation with subdirectory-lib
hi all - i have a source package i'm writing that i'd like to be able
to install with a special library that my R src files rely on.
to be more precise, i have a normal R package directory structure
(i.e. src/ R/ man/ DESCRIPTION NAMESPACE etc.).
i also have another directory here called depPkg, and it has it's own
configure file for the canonical './configure && make
2009 Jul 18
3
how to run the R script in background in Windows XP?
Hello ,everyone.
I am a fresh user of R. I wrote several several R script in R with the
version 2.9.1 in Windows XP. But I only can run these scrpit via R-GUI.
Can anyone tell me how to run the scripts in background without openning
R-gui.In another word, run the R-script and get the result via
some batch proceesing files or shell scripts directly?
Thanks.
.
--
TANG Jie
Email:
2012 Feb 15
1
Cannot use setClass() in Rscript
Greetings,
I am creating a standalone executable script using Rscript and have run
into problems when I define a new S4 class. Here is a small script that
demonstrates my problem:
#!/usr/bin/env Rscript
#
# toy.Rscript -- testing S4 class creation in an Rscript
setClass("toy",
representation(name = "character",
price = "numeric"),
2007 Dec 17
1
names in Rscript -e
Hi,
I seem to have a problem when passing named parameters to R via Rscript (R2.5.1, bash shell). As soon as I name elements of a list Rscript generates an error.
I will appreciate if someone could point to me a correct way of doing this.
Thanks,
Vadim
## This works
bash-3.2$ Rscript.exe -e 'list(1)'
[[1]]
[1] 1
# and these do not work
bash-3.2$ Rscript.exe -e
2013 Mar 09
1
Why cannot `Rscript -e` accept an empty line?
See the example below (under Ubuntu):
$ Rscript -e '1' -e '2'
[1] 1
[1] 2
$ Rscript -e '1' -e '' -e '2'
ERROR: option '-e' requires an argument
$ uname -a
Linux xie 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 18:26:58 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
Similar problem under Windows:
Rscript -e "1" -e "" -e "2"
[1]
2011 Sep 19
1
Rscript path problem on R 2.13.1 for Ubuntu 11.04?
Dear all,
finally decided to do an Ubuntu upgrade and a new clean R install from
http://cran.r-project.org/bin/linux/ubuntu/.
However, while trying to install a package from R-forge I encountered
problems, involving error messages saying "Rscript execution error: No
such file or directory" (see below).
The same procedure works on Ubuntu 11.04 running R 2.12.1-1 from the
Ubuntu
2012 Sep 06
1
[Rscript] difficulty passing named arguments from commandline
Wanting a commandline solution (for a problem detailed @
http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2012/msg00279.html
) I turned to Rscript, and whacked out the q'n'd
https://github.com/TomRoche/GEIA_to_netCDF/blob/master/netCDF.stats.to.stdout.r
However it wasn't as quick as hoped, because I spent quite a bit of time
figuring out how to pass the arguments.
2010 Mar 22
2
Problem with factors in lm() when using Rscript but not GUI
Hello R-help
I am having a curious problem. I am using a batch file to call an R script and am getting an error when performing a lm() fit using factorial data only when running in batch mode (see below). I do not get the error when executing the same code in GUI mode in R 2.10.1. Nor do I get the error when using Rscript version 2.9.2....
#######################################
#windows
2010 Jan 26
1
library.dynam
hi, i'm having some trouble getting a package to load a shared library
object in .onLoad(...)
i have a shared object file, say "mylib.so".
if i start an R session, and via the CLI specify the actual library
via:
> dyn.load("mylib.so")
everything works quite well (i.e. i can then follow with some .Call
(...) methods)
now, i'd like to include this shared library in
2011 Oct 15
2
.onLoad failing because could not find function "loadMethod"
Hi,
This strange warning happen sometimes when running 'R CMD check':
* checking whether the package can be loaded with stated dependencies
... WARNING
Error : .onLoad failed in loadNamespace() for ?pkgB?, details:
call: length(new("A"))
error: could not find function "loadMethod"
Error: package/namespace load failed for ?pkgB?
Execution halted
2017 Oct 20
1
Rscript Bug Report (improper parsing of [args])
Hi,
A user of my `optparse` package discovered a bug in Rscript's parsing of
[args]. (https://github.com/trevorld/optparse/issues/24)
I've reproduced the bug on my machine including compiling and checking the
development version of R. I couldn't find a mention of it in the Bug
Tracker or New Features.
Can be minimally reproduced on the UNIX command line with following
commands:
2009 Sep 05
1
Is 'history' recorded in Rscript?
Hi,
I run the following command and try to save the commands that have
been run in the script. But it seems that no history is recorded. Is
it because that the history is not recorded in Rscript?
Regards,
Peng
$ Rscript savehistory.R
> f=tempfile()
> f
[1] "/tmp/Rtmp7WBjGG/file327b23c6"
> history()
Error in savehistory(file) : no history available to save
Calls: history ->
2013 Apr 14
2
script works in Rgui, but failes in Rscript (coords, package 'pROC')
Dearh all,
I have following question: a script (using pROC functions) that works when
run in Rgui, failes when run through rscript.
This is the script:
library(pROC)
hits <- c("T", "D", "T", "D", "T", "D", "T", "D", "T", "D", "T", "D", "T",
"D",
2011 Aug 17
1
A question about using getSrcDirectory() with R/Rscript
Good morning R-help,
I have an idiot question: I would like to use getSrcDirectory()
and friends to allow me to identify where an R file has been
called from when invoked using Rscript. If I understand the
documentation correctly, the following example should work:
In file test.R:
options(keep.source=T)
fn<-function(x){x<-x+1}
srcDir<-getSrcDirectory(fn)
print(srcDir)
I
2017 Dec 26
2
Rscript fails with some packages (for example, h5)
Consider this script (with h5 installed):
$ cat test.R
library(h5)
name <- tempfile()
f <- h5file(name)
file.remove(name)
$ Rscript test.R
Error in initialize(value, ...) :
cannot use object of class "character" in new(): class "H5File" does not
extend that class
Calls: h5file -> new -> initialize -> initialize
Execution halted
$ /usr/lib64/R/bin/R --slave
2013 Mar 26
1
Execution halted when I use knitr and Rscript with opts_chunk
Hello all,
I wrote a bash script in Mac OS that takes my .rnw file, knit it and then
makes a .pdf. To knit my file, I'm using the command
Rscript -e "library(knitr); knit('file.rnw', encoding='utf8')"
and everything works fine. However, I don't want the ## characters in my
final document. I tested, using R prompt, the following commands
library(knitr)
2007 Apr 30
2
Rscript.Rd example (PR#9644)
One of the examples in Rscript.Rd seems mis-formatted, in that the
format statement is incomplete:
## Not run:
Rscript -e 'date()' -e 'format(Sys.time(), "
Both Rscript.Rd in R 2.5.0 and the version at:
https://svn.r-project.org/R/trunk/src/library/utils/man/Rscript.Rd
have
Rscript -e 'date()' -e 'format(Sys.time(), "%a %b %d %X %Y")'
Do
2019 Feb 28
2
Exit status of Rscript
Current R release (3.5.2) and devel return a 0 exit status on error,
while prior versions returned a non-zero exit status. On Linux and
MacOs, the following line returns TRUE for R-3.5.2 and R-devel, and
FALSE for R-3.5.1 and R-3.5.0:
system2("Rscript", c("-e", shQuote("stop('foo')"))) == 0
I didn't find this in the NEWS, so I believe this is a bug.
2016 Feb 10
2
Change Rscript and `/usr/lib/R/bin/R` relation
Dear all,
I am trying to use multiple version of R unpacked from CRAN deb files.
It does work successfully, except for some packages installation, whether
Rscript has been used. I have configured alternatives and switch R
environments without any problem and can install most of the packages.
'======================================================
$ update-alternatives --display R
R - auto
2018 Apr 26
1
Bug in RScript.exe for 3.5.0
Thanks Tomas.
I confirm the quick workaround works for me in the DOS prompt, and when having a shortcut to RScript in SendTo, and when used in the Task Scheduler. I have not tested the R-devel version, due to my unfamiliarity with installing from source code.
-----Original Message-----
From: Tomas Kalibera [mailto:tomas.kalibera at gmail.com]
Sent: Thursday, April 26, 2018 6:34 AM
To: Kerry