Hi Johannes, Tibbles add an extra layer of complexity, in that they apply their own colors to output, which doesn't necessarily follow the Emacs theme. I turn them off with:
``` options(crayon.enabled = FALSE) ``` See more discussion here: https://github.com/tidyverse/tibble/issues/395 Tyler -- plantarum.ca On Tue, Dec 5, 2023, at 4:33 AM, Hüsing, Johannes via ESS-help wrote: > Thanks, Tyler, for the directions, which made me burn office hours > while looking fort he optimal font face. > > One of these faces seems to be assigned to documenting the contents of > a tidyverse object. Via the link you can find the face used for > printing a data frame vs printing a tibble. The latter one has issues > with foreground and background being to similar, as you can see in > https://i.imgur.com/Q2lez8e.png (sorry if i am not aware of the custom > method of posting images). > > Following your directions of >> Put the cursor over the offending characters, and call the function `M-x >> describe-face`. > I get the following: > > Documentation: > Basic default face. > > Defined in ‘faces.el’. > > > Family: Consolas > Foundry: outline > Width: normal > Height: 102 > Weight: normal > Slant: normal > Foreground: #f8f8f2 > DistantForeground: unspecified > Background: #282a36 > Underline: nil > Overline: nil > Strike-through: nil > Box: nil > Inverse: nil > Stipple: nil > Font: #<font-object > -outline-Consolas-normal-normal-normal-mono-17-*-*-*-c-*-iso8859-1> > Fontset: > -outline-Consolas-normal-normal-normal-mono-17-*-*-*-c-*-fontset-auto1 > Extend: nil > Inherit: nil > > Clearly, the offending character is a lot darker than it yould be if it > used the foreground of the basic default face. > Is ESS using the "DistantForeground" and interpreting "unspecified" as > "black"? > > Is there a proper way to let ESS format outputs as default foreground > on default background, regardless if it's printing from tidyverse > objects or base R objects? > > Otherwise, the dracula theme works fine with me. Even the > auto-dim-other-buffers-mode works like a charm for both light and dark > themes. It's just that the workflow suggested here does not work as > nicely as I hoped it to do. > > Cheers > > Johannes > > > Johannes Hüsing > Epidemiologie > > > Landeskrebsregister NRW gGmbH > Gesundheitscampus 10 > 44801 Bochum > T 0234 54509-216 > F 0234 54509-499 > johannes.hues...@krebsregister.nrw.de > www.landeskrebsregister.nrw.de > > > 1. Landesqualitätskonferenz jetzt anmelden unter Qualitätskonferenzen > <www.landeskrebsregister.nrw/aktuelles/unsere-termine/qualitaetskonferenzen> > Newsletter LKR NRW jetzt anmelden unter Newsletter > <www.landeskrebsregister.nrw/aktuelles/newsletter> > Geschäftsführer > Dr. Andres Schützendübel > Vorsitzender der Gesellschafterversammlung > Staatssekretär Dr. Edmund Heller > Sitz der Gesellschaft > Bochum > Registergericht > Amtsgericht Bochum > HRB 17715 > > HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist > nicht erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu > machen. Sollten Sie irrtümlich diese Nachricht erhalten haben, bitte > ich um Ihre Mitteilung per E-Mail oder unter der oben angegebenen > Telefonnummer. > > > ______________________________________________ > ESS-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help