[ESS-bugs] Labeling askew with reproducible example WAS: doc/newfeat.texi \\ release ?!
Rodney Sparapani
rsparapa at mcw.edu
Tue Oct 16 23:00:51 CEST 2012
On 09/20/2012 01:45 PM, Rodney Sparapani wrote:
> I do have one bug (or undesirable feature) to report. But, it probably
> was present prior to the beta. When you submit a chunk from an .R file,
> the labeling is askew. For example, in the *R* buffer, I see:
>
> > > > > + . + + + + > > gamma1 gamma2 gamma3
> delta1 delta2
> [1,] -3.710132 -40.3189331 0.4265279 14.99755 19.368800
>
> Is there any way to force out a line feed and make that look better
> like...
>
> > > > > + . + + + + > >
> gamma1 gamma2 gamma3 delta1 delta2
> [1,] -3.710132 -40.3189331 0.4265279 14.99755 19.368800
Hi Vitalie:
I think I know what the problem is now. Whenever I evaluate a transient
block that contains a function definition along with some output (via
C-c C-r), then the headings are shifted.
Here's a reproducible example...
panel.hist <- function(x, ...)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col="gray", ...)
}
summary(installed.packages())
Which produces...
+ . + > > Package LibPath
Version
a4 : 1 /opt/local/lib64/R/library:4508 1.0 : 377
a4Base : 1 1.1 : 164
a4Classif : 1 0.1 : 76
a4Core : 1 0.2 : 74
a4Preproc : 1 1.2 : 73
a4Reporting: 1 1.3 : 65
(Other) :4502 (Other):3679
Priority Depends Imports
base : 14 R (>= 2.10) : 112 stats : 31
contrib : 1 R (>= 2.10.0): 47 methods, AnnotationDbi: 28
optional : 3 methods : 46 methods : 25
recommended: 15 R (>= 2.6.0) : 34 graphics : 14
NA's :4475 R (>= 2.0.0) : 33 graphics, stats : 13
(Other) :3439 (Other) : 720
NA's : 797 NA's :3677
LinkingTo Suggests Enhances OS_type
Rcpp : 46 : 69 multicore: 10 unix: 21
Rcpp, RcppArmadillo: 18 MASS : 44 TSdbi : 7 NA's:4487
: 4 RUnit : 33 : 5
Rcpp, RcppEigen : 4 annotate: 24 parallel : 3
bigmemory : 3 testthat: 22 Rmpi : 3
(Other) : 31 (Other) :1351 (Other) : 115
NA's :4402 NA's :2965 NA's :4365
License Built
GPL (>= 2) :1902 2.14.2: 133
GPL-2 : 942 2.15.1:4375
GPL : 371
GPL-3 : 273
Artistic-2.0: 164
GPL (>= 3) : 160
(Other) : 696
Which should have been...
Package LibPath Version
a4 : 1 /opt/local/lib64/R/library:4508 1.0 : 377
a4Base : 1 1.1 : 164
a4Classif : 1 0.1 : 76
a4Core : 1 0.2 : 74
a4Preproc : 1 1.2 : 73
a4Reporting: 1 1.3 : 65
(Other) :4502 (Other):3679
Priority Depends Imports
base : 14 R (>= 2.10) : 112 stats : 31
contrib : 1 R (>= 2.10.0): 47 methods, AnnotationDbi: 28
optional : 3 methods : 46 methods : 25
recommended: 15 R (>= 2.6.0) : 34 graphics : 14
NA's :4475 R (>= 2.0.0) : 33 graphics, stats : 13
(Other) :3439 (Other) : 720
NA's : 797 NA's :3677
LinkingTo Suggests Enhances OS_type
Rcpp : 46 : 69 multicore: 10 unix: 21
Rcpp, RcppArmadillo: 18 MASS : 44 TSdbi : 7 NA's:4487
: 4 RUnit : 33 : 5
Rcpp, RcppEigen : 4 annotate: 24 parallel : 3
bigmemory : 3 testthat: 22 Rmpi : 3
(Other) : 31 (Other) :1351 (Other) : 115
NA's :4402 NA's :2965 NA's :4365
License Built
GPL (>= 2) :1902 2.14.2: 133
GPL-2 : 942 2.15.1:4375
GPL : 371
GPL-3 : 273
Artistic-2.0: 164
GPL (>= 3) : 160
(Other) : 696
"ess-version : 12.09 [rev. 5170 (2012-09-24)]"
R version 2.15.1 (2012-06-22)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.ISO8859-1 LC_NUMERIC=C
[3] LC_TIME=en_US.ISO8859-1 LC_COLLATE=en_US.ISO8859-1
[5] LC_MONETARY=en_US.ISO8859-1 LC_MESSAGES=en_US.ISO8859-1
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.ISO8859-1 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MASS_7.3-22 rbenchmark_1.0.0 RcppEigen_0.3.1 Matrix_1.0-9
[5] lattice_0.20-10 Rcpp_0.9.14 inline_0.3.10
loaded via a namespace (and not attached):
[1] compiler_2.15.1 grid_2.15.1 tools_2.15.1
--
Rodney Sparapani, PhD Center for Patient Care and Outcomes Research
Sr. Biostatistician http://www.mcw.edu/pcor
4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW)
WWLD?: What Would Lombardi Do? Milwaukee, WI, USA
More information about the ESS-bugs
mailing list