[ESS-bugs] Labeling askew with reproducible example WAS: doc/newfeat.texi \\ release ?!

Vitalie Spinu spinuvit at gmail.com
Thu Oct 18 19:52:22 CEST 2012


This one was also solved today. It's just a matter of adjusting
regexp. Please let me know if it happens again.

    Vitalie

  >> Rodney Sparapani <rsparapa at mcw.edu>
  >> on Tue, 16 Oct 2012 16:00:51 -0500 wrote:

  RS> 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

  RS> Hi Vitalie:

  RS> I think I know what the problem is now.  Whenever I evaluate a transient block
  RS> that contains a function definition along with some output (via C-c C-r), then
  RS> the headings are shifted.

  RS> Here's a reproducible example...

  RS> panel.hist <- function(x, ...)
  RS> {
  RS>     usr <- par("usr"); on.exit(par(usr))
  RS>     par(usr = c(usr[1:2], 0, 1.5) )
  RS>     h <- hist(x, plot = FALSE)
  RS>     breaks <- h$breaks; nB <- length(breaks)
  RS>     y <- h$counts; y <- y/max(y)
  RS>     rect(breaks[-nB], 0, breaks[-1], y,  col="gray", ...)
  RS> }

  RS> summary(installed.packages())

  RS> Which produces...
  RS> + . + > >         Package                           LibPath Version
  RS>  a4         :   1   /opt/local/lib64/R/library:4508   1.0    : 377
  RS>  a4Base     :   1                                     1.1    : 164
  RS>  a4Classif  :   1                                     0.1    :  76
  RS>  a4Core     :   1                                     0.2    :  74
  RS>  a4Preproc  :   1                                     1.2    :  73
  RS>  a4Reporting:   1                                     1.3    :  65
  RS>  (Other)    :4502                                     (Other):3679
  RS>         Priority             Depends                       Imports
  RS>  base       :  14   R (>= 2.10)  : 112   stats                 :  31
  RS>  contrib    :   1   R (>= 2.10.0):  47   methods, AnnotationDbi:  28
  RS>  optional   :   3   methods      :  46   methods               :  25
  RS>  recommended:  15   R (>= 2.6.0) :  34   graphics              :  14
  RS>  NA's       :4475   R (>= 2.0.0) :  33   graphics, stats       :  13
  RS>                     (Other)      :3439   (Other)               : 720
  RS>                     NA's         : 797   NA's                  :3677
  RS>                LinkingTo        Suggests         Enhances    OS_type
  RS>  Rcpp               :  46           :  69   multicore:  10   unix:  21
  RS>  Rcpp, RcppArmadillo:  18   MASS    :  44   TSdbi    :   7   NA's:4487
  RS>                     :   4   RUnit   :  33            :   5
  RS>  Rcpp, RcppEigen    :   4   annotate:  24   parallel :   3
  RS>  bigmemory          :   3   testthat:  22   Rmpi     :   3
  RS>  (Other)            :  31   (Other) :1351   (Other)  : 115
  RS>  NA's               :4402   NA's    :2965   NA's     :4365
  RS>          License        Built
  RS>  GPL (>= 2)  :1902   2.14.2: 133
  RS>  GPL-2       : 942   2.15.1:4375
  RS>  GPL         : 371
  RS>  GPL-3       : 273
  RS>  Artistic-2.0: 164
  RS>  GPL (>= 3)  : 160
  RS>  (Other)     : 696

  RS> Which should have been...
  RS>         Package                           LibPath        Version
  RS>  a4         :   1   /opt/local/lib64/R/library:4508   1.0    : 377
  RS>  a4Base     :   1                                     1.1    : 164
  RS>  a4Classif  :   1                                     0.1    :  76
  RS>  a4Core     :   1                                     0.2    :  74
  RS>  a4Preproc  :   1                                     1.2    :  73
  RS>  a4Reporting:   1                                     1.3    :  65
  RS>  (Other)    :4502                                     (Other):3679
  RS>         Priority             Depends                       Imports
  RS>  base       :  14   R (>= 2.10)  : 112   stats                 :  31
  RS>  contrib    :   1   R (>= 2.10.0):  47   methods, AnnotationDbi:  28
  RS>  optional   :   3   methods      :  46   methods               :  25
  RS>  recommended:  15   R (>= 2.6.0) :  34   graphics              :  14
  RS>  NA's       :4475   R (>= 2.0.0) :  33   graphics, stats       :  13
  RS>                     (Other)      :3439   (Other)               : 720
  RS>                     NA's         : 797   NA's                  :3677
  RS>                LinkingTo        Suggests         Enhances    OS_type
  RS>  Rcpp               :  46           :  69   multicore:  10   unix:  21
  RS>  Rcpp, RcppArmadillo:  18   MASS    :  44   TSdbi    :   7   NA's:4487
  RS>                     :   4   RUnit   :  33            :   5
  RS>  Rcpp, RcppEigen    :   4   annotate:  24   parallel :   3
  RS>  bigmemory          :   3   testthat:  22   Rmpi     :   3
  RS>  (Other)            :  31   (Other) :1351   (Other)  : 115
  RS>  NA's               :4402   NA's    :2965   NA's     :4365
  RS>          License        Built
  RS>  GPL (>= 2)  :1902   2.14.2: 133
  RS>  GPL-2       : 942   2.15.1:4375
  RS>  GPL         : 371
  RS>  GPL-3       : 273
  RS>  Artistic-2.0: 164
  RS>  GPL (>= 3)  : 160
  RS>  (Other)     : 696

  RS> "ess-version : 12.09 [rev. 5170 (2012-09-24)]"

  RS> R version 2.15.1 (2012-06-22)
  RS> Platform: x86_64-unknown-linux-gnu (64-bit)

  RS> locale:
  RS>  [1] LC_CTYPE=en_US.ISO8859-1       LC_NUMERIC=C
  RS>  [3] LC_TIME=en_US.ISO8859-1        LC_COLLATE=en_US.ISO8859-1
  RS>  [5] LC_MONETARY=en_US.ISO8859-1    LC_MESSAGES=en_US.ISO8859-1
  RS>  [7] LC_PAPER=C                     LC_NAME=C
  RS>  [9] LC_ADDRESS=C                   LC_TELEPHONE=C
  RS> [11] LC_MEASUREMENT=en_US.ISO8859-1 LC_IDENTIFICATION=C

  RS> attached base packages:
  RS> [1] stats     graphics  grDevices utils     datasets  methods   base

  RS> other attached packages:
  RS> [1] MASS_7.3-22      rbenchmark_1.0.0 RcppEigen_0.3.1  Matrix_1.0-9
  RS> [5] lattice_0.20-10  Rcpp_0.9.14      inline_0.3.10

  RS> loaded via a namespace (and not attached):
  RS> [1] compiler_2.15.1 grid_2.15.1     tools_2.15.1



More information about the ESS-bugs mailing list