qgis is an R package that allows running QGIS tools directly from R. It is build on top of much more general package qgisprocess. The package brings over 900 QGIS tools directly into R even with their on help pages.

The package itself is build automatically using qgisprocess and QGIS help.

Package can be installed from Github:

remotes::install_github("JanCaha/r_package_qgis")

A small example using buffer algorithm.

library(sf)

fname <- system.file("shape/nc.shp", package="sf")
nc <- st_read(fname)

buffered <- qgis::qgis_buffer(INPUT = nc, 
                              DISTANCE = 0.5, 
                              END_CAP_STYLE = "Flat") %>% 
  st_as_sf()

plot(buffered)