Weird output in Preview of R Notebook

The only code chunk in a new R Notebook:

library(tidyverse)
read_csv(readr_example("mtcars.csv"))

The output when I run the chunk or Knit to HTML is fine, but the Preview of the R Notebook looks like this:

Registered S3 method overwritten by 'dplyr':
method from
print.rowwise_df
[30m── [1mAttaching packages[22m ─────────────────────────────────────────────────────── tidyverse 1.2.1 ──[39m
[30m[32m✔[30m [34mggplot2[30m 3.2.1 [32m✔[30m [34mpurrr [30m 0.3.2
[32m✔[30m [34mtibble [30m 2.1.3 [32m✔[30m [34mdplyr [30m 0.8.3
[32m✔[30m [34mtidyr [30m 0.8.3 [32m✔[30m [34mstringr[30m 1.4.0
[32m✔[30m [34mreadr [30m 1.3.1 [32m✔[30m [34mforcats[30m 0.4.0[39m
[30m── [1mConflicts[22m ────────────────────────────────────────────────────────── tidyverse_conflicts() ──
[31m✖[30m [34mdplyr[30m::[32mfilter()[30m masks [34mstats[30m::filter()
[31m✖[30m [34mdplyr[30m::[32mlag()[30m masks [34mstats[30m::lag()[39m

Parsed with column specification:
cols(
mpg = [32mcol_double()[39m,
cyl = [32mcol_double()[39m,
disp = [32mcol_double()[39m,
hp = [32mcol_double()[39m,
drat = [32mcol_double()[39m,
wt = [32mcol_double()[39m,
qsec = [32mcol_double()[39m,
vs = [32mcol_double()[39m,
am = [32mcol_double()[39m,
gear = [32mcol_double()[39m,
carb = [32mcol_double()[39m
)

The YAML header:
title: "R Notebook"
output: html_notebook

Have I inadvertently changed a default setting somewhere?

MacOS 10.13.6
RStudio 1.2.1568 (also 1.2.1335)
R 3.6.1

John

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.