search for: rfile

Displaying 20 results from an estimated 52 matches for "rfile".

Did you mean: file
2011 Jan 24
3
error with source(): invalid 'times' value
hi I am seeing a strange behavior I can't understand... doing: > source("/tmp/RFile.r",echo=TRUE) Error in rep.int(c(prompt.echo, continue.echo), c(leading, length(dep) - : invalid 'times' value > traceback() 3: rep.int(c(prompt.echo, continue.echo), c(leading, length(dep) - leading)) 2: paste(rep.int(c(prompt.echo, continue.echo), c(leading, length(de...
2006 May 17
2
No output in sourced R program
...ram 02e451444d6a46acf551996579092c911b90aa8e.R and run it I get R : Copyright 2006, The R Foundation for Statistical Computing Version 2.3.0 (2006-04-24) > source("02e451444d6a46acf551996579092c911b90aa8e.R") Save workspace image? [y/n/c]: n mars:/srv/www/htdocs/mediawiki/teachwiki/Rfiles # more 02e451444d6a46acf551996579092c911b90aa8e.R rfiles<-"/srv/www/htdocs/mediawiki/teachwiki/Rfiles" 1:30 q() No output from 1:30 to the screen. Any idea what I do wrong ? Thanks Sigbert
2002 Aug 13
1
R CMD check: Too long [R] code line generated (PR#1900)
Full_Name: Henrik Bengtsson Version: 1.5.1 OS: WinMe Submission from: (NULL) (217.210.0.243) In the Perl script $R_HOME/bin/check there is a bug under the section "Check R code for syntax errors" where the 'Rfiles <- c(...)' is build up. If there are too many files in @Rfiles the source code line generated will be too long and weird things will happen, e.g. strange bytes/characters will be inserted. SUGGESTION/SOLUTION: Add a new line character after each "join"; $Rcmd .= join("\&qu...
2006 Oct 25
1
Excel files
Hi every one, I am very very new to R and solicit your kind help I am trying to use my excel files in R. I used the Xlread/write package and able to load the a sample file into console. Then I tried to find the mean of a column vector for example. But I could not proceed Here is the problem rfile <- "Trial1.xls" > read.xls( rfile, colNames = TRUE, sheet = 1, type = "data.frame", from = 1 ) x y z 1 4 7 9 2 5 7 10 3 6 9 11 I request your help to find mean of column x With warm regards Milan Send instant messages to your online friends http://uk.messenger.ya...
2011 Jun 02
1
Line histogram for a matrix
...istogram for each row, but it should not appear as bars but rather as lines connecting the points of the frequencies. Now, I want to do this for the 100 rows and make all histogram lines appear with different colors into the same graph. The graph should look something like: http://robjhyndman.com/Rfiles/animation/frmale191.jpg http://robjhyndman.com/Rfiles/animation/frmale191.jpg but instead of those values should be more like histogram shape. How can you do it??? Thanks!!! -- View this message in context: http://r.789695.n4.nabble.com/Line-histogram-for-a-matrix-tp3568560p3568560.html Sen...
2007 Feb 09
1
append within worksheet in write.xls
I can currently append an entire worksheet with write.xls, but would also like to be able to append within the same worksheet. Is this possible? It doesn't seem to work if I use append = T Thanks, Mark -- Mark W. Kimpel MD Neuroinformatics Department of Psychiatry Indiana University School of Medicine
2004 Sep 28
1
package error message
...hecking whether package 'GammaTest' can be installed ... ERROR Installation failed. See 'c:/Documents and Settings/Samuel Kemp/My Documents/R Files/GammaTest.Rcheck/00install.out' for details. This file contains the following..... installing R.css in c:/DOCUME~1/SAMUEL~1/MYDOCU~1/RFILES~1/GAMMAT~1.RCH ---------- Making package GammaTest ------------ adding build stamp to DESCRIPTION make[2]: *** No rule to make target `R/Create', needed by `c:/DOCUME~1/SAMUEL~1/MYDOCU~1/RFILES~1/GAMMAT~1.RCH/GammaTest/R/GammaTest'. Stop. make[1]: *** [all] Error 2 make: *** [pkg-Ga...
2002 Aug 14
1
FW: R CMD check: Too long [R] code line generated (PR#1900)
...; > Version: 1.5.1 > > > OS: WinMe > > > Submission from: (NULL) (217.210.0.243) > > > > > > > > > In the Perl script $R_HOME/bin/check there is a bug under the > > section "Check R > > > code for syntax errors" where the 'Rfiles <- c(...)' is build > > up. If there are > > > too many files in @Rfiles the source code line generated will > > be too long and > > > weird things will happen, e.g. strange bytes/characters will be > > inserted. > > > > > SUGGESTION/SOLUTI...
2009 Dec 17
2
Sweave Makefile issue
...ry structure to be understood by the compiler. What's wrong then with this Makefile (I am using GNU Make 3.81)? I will be grateful for any help you can provide. _________________________________________________ MASTER = total_article.pdf # the master document depends on all of the tex files Rfile = prepareScript.R RNWFILES = $(wildcard *.Rnw) TEXFILES = $(wildcard *.tex) DEPENDS = $(patsubst %.Rnw,%.tex,$(RNWFILES)) $(TEXFILES) RERUN = "(There were undefined references|Rerun to get (citations|cross-references|the bars) (correct|right)|Table widths have changed. Rerun LaTeX.|Linenumb...
2002 Aug 14
0
source() crashes on long lines (PR#1900)
...gt; Full_Name: Henrik Bengtsson > > Version: 1.5.1 > > OS: WinMe > > Submission from: (NULL) (217.210.0.243) > > > > > > In the Perl script $R_HOME/bin/check there is a bug under the > section "Check R > > code for syntax errors" where the 'Rfiles <- c(...)' is build > up. If there are > > too many files in @Rfiles the source code line generated will > be too long and > > weird things will happen, e.g. strange bytes/characters will be > inserted. > > > SUGGESTION/SOLUTION: > > Add a new line charac...
2010 Apr 25
4
Image into Excel file from R
Hi useRs, I would like to know what R users are employing to get their images/plots created in R, into Excel sheets. I am aware of the various packages (xlsReadWrite, RODBC) to get data frames into R, but I would like to copy images too. Thank you for any help in solving this problem. Regards, Harsh Singhal
2007 Jun 20
1
How to handle package conflicts between classes ..
...ackage { [ pdftk ]: # ensure => installed, # args => "--enablerepo=dag-puppet" # } service { cups: ensure => running, enable => true } rfile { "/etc/cups/cupsd.conf": type => "cups-server", group => lp, mode => 640, notify => Service["cups"]; "/usr/share/cups/model": ty...
2010 Mar 24
1
R and/or REngine kills Java
...lse); } /** Assigns the given java value to the given R variable name */ private static void assign(Rengine r, String rVariableName, String javaValue) { r.assign(rVariableName, javaValue); } public void run() throws Exception { String filepath = this.path; if (filepath != null) { File rFile = new File(filepath ); if (rFile.exists()) { // run R script // start R engine if (!Rengine.versionCheck()) { System.err.println("** Version mismatch - Java files don't match library version."); System.exit(1); } // creating R engine Rengine rEng...
2007 Feb 22
1
R CMD CHECK question
...scribes the dependency as it should be ('Imports', `require'), at least I think so. now, running R CMD CHECK pkc yields the following output in which I have inserted my questions (lines starting with -->): * checking for working latex ... OK * using log directory '/Users/vdh/rfiles/Rlibrary/.check/pkc.Rcheck' * using R version 2.4.0 (2006-10-03) * checking for file 'pkc/DESCRIPTION' ... OK * this is package 'pkc' version '1.1' * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'pkc...
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...= fopen(filename, "w"); if (!wfile) { fprintf(stderr, "Cannot open output file %s\n", filename); return 1; } for (int i = 0; i < szarray; i++) fprintf(wfile, "%d ", i); fclose(wfile); // Read data from file. FILE* rfile = fopen(filename, "r"); if (!rfile) { fprintf(stderr, "Cannot open input file %s\n", filename); return 1; } for (int i = 0; i < szarray; i++) { int val; fscanf(rfile, "%d", &val); printf("%d "...
2004 Dec 13
4
Calling R from a non-X shell script to plot?
...but have no idea if it works or where to start. If there is a simpler solution, please let me know. -- doktora I run the following shell script from the apache module using execve: ------------------------------------------------------ DISPLAY=:0.0 export DISPLAY if $R --vanilla --quiet < $rfile >$log ; then echo "Success" else echo "There were errors in $0, see $log" fi ------------------------------------------------------ And $rfile contains this: ------------------------------------------------------ png(filename = "/tmp/plot.png", width = 510, hei...
2007 Mar 19
1
R CMD CHECK problem
...is it, that R CMD CHECK is complaining? what am I doing wrong? how have I to specify the links in the manpages to tell CHECK that everything is basically OK? ========================CUT==================================== * checking for working latex ... OK * using log directory '/Users/vdh/rfiles/Rlibrary/.check/pkc.Rcheck' * using R version 2.4.0 (2006-10-03) * checking for file 'pkc/DESCRIPTION' ... OK * this is package 'pkc' version '1.1' * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'pkc...
2008 Aug 31
2
Help using ed [OT]
...ding style for ed and append text. I have tried tried but still cannot get it correct using (.)a. Is it even possible to do it that way using the (.)a command? Thanks in advance Thomas code example that give a "no match". Fairly easy to read and understand example 1: ----------- for RFILE in $RLIST; do ed - RFILE <<- EOF H /\[matching_text_1\]/a This is the appended textline(s) for text1 . /\[matching_text_2\]/a This is the appended textline(s) for text2 . w q EOF done Another example that solve the above problem. But this example...
2003 Sep 17
2
Very long console input lines
Hallo all, I got a problem executing R in batch-mode via a perl-script (under Win2000) : system ("Rterm.exe --slave --no-save --no-restore \<Rfile.r \>NUL"); The R execution is aborting with syntax error due to very-long lines. My solution is converting a <- c("very long string") to a <- paste("short string 1",\n "short string 2",\n ...,\n "...
2003 Sep 14
2
Problem building methods package?
...ild R... I finally took the time to investigate and the crash is in building 'methods': all.R is unchanged ../../../library/methods/man/methods.Rd is unchanged make[2]: `Makedeps' is up to date. ../../../../library/methods/libs/methods.so is unchanged make[1]: Nothing to be done for `Rfiles'. Any clues to where this came from? Regenerating the Makefiles didn't seem to help. OS X, 10.2.6, gcc3.3 rsync about 6 hours old. Should I just nuke the whole build tree and rsync everything again? --- Byron Ellis (bellis@hsph.harvard.edu) "Oook" - The Librarian