I saw this thread https://github.com/r-lib/ragg/issues/51 . There is there is the reference to this stopgap: https://ragg.r-lib.org/#use-ragg-with-knitr which did fix the current problem. Is there a more permanent solution?
I am using Windows 11 and :
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
Here is what I am getting:
library(tidyverse)
library(sf)
#> Linking to GEOS 3.9.3, GDAL 3.5.2, PROJ 8.2.1; sf_use_s2() is TRUE
library(rnaturalearth)
library(rnaturalearthdata)
#>
#> Attaching package: 'rnaturalearthdata'
#> The following object is masked from 'package:rnaturalearth':
#>
#> countries110
library(rgeos)
#> Loading required package: sp
#> rgeos version: 0.6-1, (SVN revision 692)
#> GEOS runtime version: 3.9.3-CAPI-1.14.3
#> Please note that rgeos will be retired during 2023,
#> plan transition to sf functions using GEOS at your earliest convenience.
#> GEOS using OverlayNG
#> Linking to sp version: 1.6-0
#> Polygon checking: TRUE
library(reprex)
s_america<-ne_countries(scale="medium",continent='south america',returnclass="sf")
ggplot() + geom_sf(data = s_america)
Created on 2023-01-26 with reprex v2.0.2