emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
614 stars 160 forks source link

Output from background processes to R console #1174

Closed adamSales closed 2 years ago

adamSales commented 2 years ago

Apologies if this has been previously posted!

As I am working in an interactive R session, background processes (I assume) sporadically print output to the console. Here is an example of the output:

>(list "base" '(("x" . "") ("incomparables" . "FALSE") ("fromLast" . "FALSE") ("nmax" . "NA") ("..." . "")) '("x" "incomparables" "..." "MARGIN" "fromLast" "nmax" "order" "nunique" "method"))
> 
> (list "" '(("..." . "") ("na.rm" . "FALSE")) '("..." "na.rm" "x" "range"))
> (list "" '(("..." . "") ("na.rm" . "FALSE")) '("..." "na.rm" "x" "range"))
> (list "" '(("..." . "") ("na.rm" . "FALSE")) '("..." "na.rm" "x" "range"))
> (list "" '(("..." . "") ("na.rm" . "FALSE")) '("..." "na.rm" "x" "range"))
> (list "base" '(("x" . "") ("incomparables" . "FALSE") ("fromLast" . "FALSE") ("nmax" . "NA") ("..." . "")) '("x" "incomparables" "..." "MARGIN" "fromLast" "nmax" "order" "nunique" "method"))
> (list "base" '(("x" . "") ("incomparables" . "FALSE") ("fromLast" . "FALSE") ("nmax" . "NA") ("..." . "")) '("x" "incomparables" "..." "MARGIN" "fromLast" "nmax" "order" "nunique" "method"))
> (list "base" '(("x" . "") ("incomparables" . "FALSE") ("fromLast" . "FALSE") ("nmax" . "NA") ("..." . "")) '("x" "incomparables" "..." "MARGIN" "fromLast" "nmax" "order" "nunique" "method"))
> (list "" '(("..." . "") ("na.rm" . "FALSE")) '("..." "na.rm" "x" "range"))
> (list "" '(("..." . "") ("na.rm" . "FALSE")) '("..." "na.rm" "x" "range"))

Sometimes it will reference a loaded package:

> (list "dplyr" '(("x" . "") ("y" . "") ("by" . "NULL") ("copy" . "FALSE") ("suffix" . "c(\".x\", \".y\")") ("..." . "") ("keep" . "FALSE")) '("x" "y" "by" "copy" "suffix" "..." "keep" "na_matches" "auto_index" "sql_on"))
> (list "dplyr" '(("x" . "") ("y" . "") ("by" . "NULL") ("copy" . "FALSE") ("suffix" . "c(\".x\", \".y\")") ("..." . "") ("keep" . "FALSE")) '("x" "y" "by" "copy" "suffix" "..." "keep" "na_matches" "auto_index" "sql_on"))

I am using the most release from Vincent Goulet--GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) with ESS 18.10.2 on Windows 10, with R 4.1.1.

Please let me know what other information would be helpful.

Just in case, here's a copy of my console from today, until the first instance:


R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> setwd('g:/My Drive/iesJohannReloop/ethenExperiments/')
> library(tidyverse)

-- Attaching packages --------------------------------------- tidyverse 1.3.1 --
v ggplot2 3.3.5     v purrr   0.3.4
v tibble  3.1.5     v dplyr   1.0.7
v tidyr   1.1.4     v stringr 1.4.0
v readr   2.0.2     v forcats 0.5.1
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag()    masks stats::lag()
> dat <- read_csv('experiment_results.csv')
Rows: 407120 Columns: 10
-- Column specification --------------------------------------------------------
Delimiter: ","
chr (2): model, sequence_id
dbl (8): assignment_log_id, completion_target, problems_target, completion_p...

i Use `spec()` to retrieve the full column specification for this data.
i Specify the column types or set `show_col_types = FALSE` to quiet this message.
> dat
# A tibble: 407,120 x 10
   model  sequence_id assignment_log_id completion_target problems_target
   <chr>  <chr>                   <dbl>             <dbl>           <dbl>
 1 action PSAU4JD              13560688                 1              12
 2 action PSA59VC              12286270                 1               8
 3 action PSAUKPM              15278877                 1              10
 4 action PSABF5JC             16444919                 1               6
 5 action PSA2KKZ              18077783                 0               1
 6 action PSAQJFP               8463237                 0               0
 7 action PSA2KKV               4088455                 1               8
 8 action PSA59VC              12285598                 1               7
 9 action PSAQJFP               5643656                 1               5
10 action PSAMGHG                 14705                 0              13
# ... with 407,110 more rows, and 5 more variables:
#   completion_prediction <dbl>, problems_prediction <dbl>, user_id <dbl>,
#   in_control <dbl>, in_treatment <dbl>
> crosswalk <- read_csv('exp_norm_map.csv')
Rows: 89 Columns: 2
-- Column specification --------------------------------------------------------
Delimiter: ","
chr (2): experiment_id, normal_id

i Use `spec()` to retrieve the full column specification for this data.
i Specify the column types or set `show_col_types = FALSE` to quiet this message.
> (list "dplyr" '(("x" . "") ("y" . "") ("by" . "NULL") ("copy" . "FALSE") ("suffix" . "c(\".x\", \".y\")") ("..." . "") ("keep" . "FALSE")) '("x" "y" "by" "copy" "suffix" "..." "keep" "na_matches" "auto_index" "sql_on"))
> (list "dplyr" '(("x" . "") ("y" . "") ("by" . "NULL") ("copy" . "FALSE") ("suffix" . "c(\".x\", \".y\")") ("..." . "") ("keep" . "FALSE")) '("x" "y" "by" "copy" "suffix" "..." "keep" "na_matches" "auto_index" "sql_on"))
lionel- commented 2 years ago

Either use dev ESS or set this to disable eldoc/completions: (setq ess-can-eval-in-background nil).