similar to: R CMD BATCH on scripts without trailing newline

Displaying 20 results from an estimated 4000 matches similar to: "R CMD BATCH on scripts without trailing newline"

2002 Jan 15
1
labels returned by cut() when include.lowest=T (PR#1263)
Full_Name: Stephen Eglen Version: 1.4 OS: Redhat Linux 7.1 Submission from: (NULL) (128.252.204.36) I think the brackets in the levels of cut() are slightly incorrect when include.lowest is TRUE. For example: > table(cut( c(1,4), include.lowest=T, right=F, breaks=c(1,2,3,4))) [1,2) [2,3) [3,4) 1 0 1 I think the last range in this case should be [3,4]. A similar problem
2000 Jul 06
1
R 1.1.0 dev.print()
Hi, I just upgraded to 1.1.0 from 1.0.1 this morning on my OSF/1 machine. I now have problems with the following code: %E /tmp 43% R --vanilla Version 1.1.0 (June 15, 2000) ... > test2 <- function () { plot(runif(30)) ofile <- "/tmp/newfile.ps" dev.print(file = ofile) } + + + + + > > test2() Error in device(...) : Object "ofile" not found However, if
2012 Jun 16
2
aligning axis labels in a colorkey from levelplot
R does a great job with the fine details regarding plots. e.g in the following: library(lattice) y <- -4:4/10 xyplot(y~1, las=1) the y axis is labelled with numbers -0.4, -0.2, 0.0, 0.2, 0.4 with the numbers aligned on the decimal point. How do I get the same behaviour in the colorkey of a levelplot? e.g. levelplot(matrix(y,3,3)) the numbers in the colorkey seem left-aligned, and
2012 Jun 16
2
Adding title to colorkey
A recent paper on visualisation (in Neuron, a leading neuroscience journal) surveyed how well previous articles in this journal labelled their graphs (e.g. axis labelling and describing their error bars). Of particular interest is that (only) 40% of plots labelled what their colorkey was showing (variable and units). The paper is at http://dx.doi.org/10.1016/j.neuron.2012.05.001 R is not yet
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
2004 Oct 29
3
R-exts.texi: suggestion for small change to Vignette section (PR#7323)
I recently wrote a vignette, with the following at the top of the .Rnw file: %%\VignetteIndexEntry{How to use look up tables for h() functions} %%\VignetteDepends{sjedmin, spatstat} Using vExplorer() on this function, I got an error from this part of getVigInfo(): lines <- grep("^%[[:space:]]*\\\\Vignette", file) if (length(lines) == 0) stop("File ", vig,
2007 Jan 10
4
Trailing message on R CMD BATCH
Unix versions of R CMD BATCH have reported proc.time() unless the script ends in q(). E.g. if the input is 'search()' the output is > invisible(options(echo = TRUE)) > search() [1] ".GlobalEnv" "package:stats" "package:graphics" [4] "package:grDevices" "package:utils" "package:datasets" [7]
2006 May 17
1
Renaming Rplots.ps from BATCH scripts.
I often use R CMD BATCH to run my files (e.g. script.R), and get the output recorded in script.Rout -- this is great. On my setup (R.2.3.0 on linux), if any plots are created, they get stored in Rplots.ps. This can get confusing if I have several batch scripts in one directory. I've written a simple shell script to rename Rplots.ps to e.g. script.Rout.ps so that later I can easily identify
2002 Nov 19
1
forwarding features
While messing with various tunnels it occured to me that there may be cases where some extra tunneling functionality would come in handy. I thought I better run it past the list before trying to implement a patch since the last 2 times I did this there was another way to get the effect I wanted with no code changes... Forwarding should not just be of AF_INET but (where available) AF_UNIX (ie
2003 Sep 19
1
R CMD INSTALL is sensitive to trailing newlines in DESCRIPTION.in
Hi, with R v1.7.1 (=I don't recall I saw it before) I noticed that R CMD INSTALL sometimes generates nonsense information, e.g. "Bundle: NA", even if there was a correct DESCRIPTION file too. I turns out that it happens when a DESCRIPTION.in has empty lines at the end. I have observed this behavior on both Sun Solaris 9 and Windows XP Pro (but here I am using unsupported Cygwin w/
2000 Jul 06
0
Re: [R] R 1.1.0 dev.print() & dev.copy2eps -- bug{let} (PR#596)
>>>>> "StEgl" == Stephen Eglen <stephen@cogsci.ed.ac.uk> writes: StEgl> Hi, I just upgraded to 1.1.0 from 1.0.1 this morning on my OSF/1 StEgl> machine. I now have problems with the following code: StEgl> %E /tmp 43% R --vanilla StEgl> Version 1.1.0 (June 15, 2000) StEgl> ... >> test2 <- function () {
2001 Mar 11
4
prng_cmds/init_rng() question/patch
I have a need to provide ssh client binaries for use elsewhere on several platforms, some without /dev/random support. I can't assume that users will know how to install/run prngd or egd, so I was planning to rely on the builtin prng code. However this require the ssh_prng_cmds file to exist in a fixed location -- which would mean making binaries which either look for it in . or other
2002 Nov 11
2
R 1.6.1: help with debugging error in RunGenCollect(), R_gc_internal
Hi, [System info: R 1.6.1 compiled from source (no args to configure) on Redhat 7.1 Linux i/386] I have some spatial statistics programs that recently (since R 1.6.1) have generated SIGSEGV. These R programs use the splancs library as well as some C code of my own for Voronoi analysis. The program has a big loop to fit various model parameters against a spatial distribution of biological
2004 Jan 30
0
savehistory() for ESS {was "ess and debug package"}
>>>>> "StEgl" == Stephen Eglen <stephen@inf.ed.ac.uk> >>>>> on Fri, 30 Jan 2004 12:56:48 +0000 writes: >> I was trying to use the new debug package from within emacs, I get the >> following error: >> >library(debug) >> Loading required package: mvbutils >> MVBUTILS: no "tasks" vector
2000 Jun 08
7
R Equivalent to matlab's find() command?
hi, Just a very simple question: is there an R equivalent to the matlab command find(X) which returns the indices of vector X that store non-zero elements? e.g. > find( [1 0 0 1 0]) ans = 1 4 so, in R, how do I do: ans <- rfind( c(1,0,0,1,0)) so that ans is the vector c(1,4) thanks, stephen -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help
2015 Feb 12
3
[Bug 2350] New: ssh-copy-id doesn't handle keys with missing trailing newline
https://bugzilla.mindrot.org/show_bug.cgi?id=2350 Bug ID: 2350 Summary: ssh-copy-id doesn't handle keys with missing trailing newline Product: Portable OpenSSH Version: 6.7p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component:
2002 Apr 01
4
path to find ssh-rand-helper
Before I actually implement the small changes needed to allow the location of ssh-rand-helper to be specified in the config file, I'd like to check that in doing so I won't be opening up a huge security hole. My brief reading of the code suggests that in entropy.c:seed_rng() the ssh-rand-helper is run as the original uid (for binaries which were setuid in the first place of course), so I
2001 May 31
1
documentation for image(): zlim update (PR#962)
Full_Name: Stephen Eglen Version: 1.2.3 OS: Linux Submission from: (NULL) (128.252.204.186) The help file for image() currently says: The way in which `zlim' is divided into colours will be changed for the next major release (1.1.0) to divide the range into equal-length intervals. According to NEWS, this was indeed changed in 1.1.0, so perhaps it can now be removed from the
2001 Jun 18
1
typos in doc for write.table (PR#984)
Full_Name: Stephen Eglen Version: 1.2.3 OS: Linux (Redhat 6.1) Submission from: (NULL) (128.252.204.186) Hi, two small typos in `?write.table' (R 1.2.3) In the doc of the append parameter: append: logical. If true, the output is appended to targshe file. that should be "... to the file". and in the Details section, a full-stop is missing after names: Normally there is no
2000 May 30
2
Documentatio: typo in Writing R Extensions (PR#557)
Full_Name: stephen eglen Version: 1.0.0 OS: Unix (OSF/1) Submission from: (NULL) (129.215.238.26) Hi, in the documentation `Writing R Extensions', the section 3.6.1 (handling the effects of garbage collection) has the following typo: Protecting a SEXP pointer protexts ... Should that be `protects'? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-