search for: scriptfile

Displaying 15 results from an estimated 15 matches for "scriptfile".

2009 Aug 05
1
exec subdirectory of a package
...works on (at least my) linux A very naive "execute" written in R follows. Romain #!/bin/env Rscript args <- commandArgs(TRUE) if( length(args) < 2 ){ stop( "usage : R CMD execute package script [parameters]\n" ) } package <- args[1] script <- args[2] scriptfile <- file.path( system.file( "exec", script, package = package ) ) if( !file.exists( scriptfile ) ){ stop( sprintf( "file not found: '%s' ", scriptfile ) ) } trail <- if( length(args) > 2 ) paste( tail( args, -2 ), sep = " " ) else "&quot...
2005 Jun 03
3
plots from batchfile on windows
Hi, On windows I'd like to run a batchfile that leaves me a plot. As a test I have the scriptfile "test.r" which only contains: x <- 1:10; y <- sample( 10 ) plot( x, y ) Now I tried the following (but nothing worked): a) "R --vanilla < test.r" in the cmd window, => that doesn't give me a plot b) the same, but I added "bitmap(file="out...
2012 May 31
3
RScript.exe and map directory issue
Hi, I'm trying to run on Windows 7 a scriptfile with Rscript.exe from within Excel 2010 with the following code: Call Shell(rPath & "\Rscript.exe C:\Work\Latest\_Test.R", vbHide) The good news is: the above code works perfectly, but ... If I add white spaces to my map directory, like: Call Shell(rPath & "\Rscript.exe C:\...
2002 Feb 27
3
BATCH mode
Dear R users I wonder if it is possible to run R code in the batch mode like in Splus (Splus5 scriptfile outputfile). Any hints? Andreas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subj...
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
2003 Nov 30
2
vfs module for interpreting a script on file access
...pt and handles the stdout output of the script to the client. the script must take care of the dos file format (CR,LF) and so an .. the client does not know this, from client side this is only a .bat file like each other ... :-) possible module options would be the $1, $2, .. execparameter for the scriptfile; (mostly all the smb.conf "VARIABLE SUBSTITUTIONS" like %U, %I .. and so on) of course the script should do something dynamic based on this parameters. this would be ideal for real MS-DOS hosts which cannat do anything on itself ;-) i hope, i get some replies here :-) mfg hermann
2009 Jul 13
2
how to run a R program with input arguments
I am a beginner in R and know only a little about it yet. I have a script written in R language, named as "a.txt" for example. I am using a Linux machine, at present I only know that I can type "R" in the terminal and then copy-paste the content in "a.txt" to the R's interface to execute the program. However, I want to know if there is any method that allows me to
2010 Jan 28
1
Question about Pigeonhole for Dovecot v2.0 revision 1223:67f7f59671e8
I'm looking for documentation on the testsuite program. The most useful piece would be a sample scriptfile. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2541 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20100128/3c1e7b19/attachment-0002.bin>
2012 Jul 10
2
define stuff to be only usable in the same file
Hello R-Help! I've looked around and have not found: A simple(short) way to hide functions and variables from the global environment. What i want is for a few of them to only be accessable from the scriptfile they're in. I probably could do fun things with environments , but that seems quite a hassle. As example: I have a file that gets me stuff from the database and creates an R object from the results, plus some functions on that object. Now i want the objectrelated stuff to be global, while the...
2009 Jan 30
1
Using Rscript
...have overlooked. I am running Rscript successfully to read and execute an R program, but have failed to find the correct syntax to route the output to a file using the Rscript command that invokes the job. I tried Rscript -e 'sink("outputfile")' script.R , but it then ignored the scriptfile. I know that pipes would solve the problem in unix, but I have no idea how the windows equivalent works. I am running R.2.8.0 on windows, Many thanks, Philip This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it imm...
2010 Aug 07
2
piegonhole seg fault with NULL user
...0, 0, 0}}}, ip4 = {s_addr = 0}}}, userdb_fields = 0x0} username = <value optimized out> errstr = 0x4013d4cc "\205\300u%\203\304\020[^]\303\307D$\004" #6 0x08054f5b in main (argc=2, argv=0x85ff1c0) at testsuite.c:147 svinst = 0x4001da98 scriptfile = 0x85f7058 "./tests/testsuite.svtest" dumpfile = 0x0 tracefile = 0x0 tr_config = {level = SIEVE_TRLVL_ACTIONS, flags = 0} sbin = <value optimized out> sieve_dir = <value optimized out> log_stdout = false ret = <value...
2010 Sep 02
2
R code changes to crap
Hi, I am using vim to edit my files...I do not know what has been pressed by me as my R code get converted to such a crap... %PDF-1.4 %<81>â<81>ã<81>Ï<81>Ó\r 1 0 obj << /CreationDate (D:20100902122215) /ModDate (D:20100902122215) /Title (R Graphics Output) /Producer (R 2.11.1) /Creator (R) how to reconvert it to the my actual code?? as I do not have backup for
2006 Jan 10
9
FastCGI cannot start; Rails doesn''t work
I have a problem deploying FastCGI for use with RoR. OS: FreeBSD 5.4 Apache: 2.0.55 FastCGI: 2.4.2 ###### I compiled a new mod_fastcgi.so and copied it to /usr/lib/apache/mod_fastcgi.so ###### My httpd.conf looks like this: LoadModule fastcgi_module /usr/lib/apache/mod_fastcgi.so <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi </IfModule> ###### The testscript
2004 Aug 31
2
Problem with R --gui=GNOME when launched from a menu system
A Debian user filed a bug report the details of which are at http://bugs.debian.org/269107 I can replicate his problem: the R/Gnome entry that is made available to the various window managers fails. A window pops, and exists. As far as I can tell, the menuing system does not have a problem with shell script wrapper. Environment variables like PATH, DISPLAY etc should be set too. So the best
2003 Aug 31
3
Problem and Question regarding R
Hi, I'm just about to install the Precompiled Binary Distribution of R from CRAN for SuSE Linux 8.2: R-base-1.7.1-1.i386.rpm My system is SuSE Linux 8.2 Professional Edition on a Pentium 4: # uname -a Linux linux 2.4.20-4GB #1 Mon Mar 17 17:54:44 UTC 2003 i686 unknown unknown GNU/Linux 1) Problem: I've tried to install the above base rpm archive with the command: # rpm -i