Is there a way to replicate the Split Vector Layer function from QGIS in R?

I have a Shapefile containing around 20 polygons that I'd like to split into 20 separate files.

I guess since it's in QGIS there would be a solution in Python, but I'd like to integrate it into a R workflow if possible.

- Serverfault Help
- Superuser Help
- Ubuntu Help
- Webapps Help
- Webmasters Help
- Programmers Help
- Dba Help
- Drupal Help
- Wordpress Help
- Magento Help
- Joomla Help
- Android Help
- Apple Help
- Game Help
- Gaming Help
- Blender Help
- Ux Help
- Cooking Help
- Photo Help
- Stats Help
- Math Help
- Diy Help
- Gis Help
- Tex Help
- Meta Help
- Electronics Help
- Stackoverflow Help
- Bitcoin Help
- Ethereum Help