sen2r is a scalable and flexible R package to enable downloading and preprocessing of Sentinel-2 satellite imagery via an accessible and easy to install interface. It allows the execution of several preprocessing steps which are commonly performed by Sentinel-2 users: searching the Sentinel-2 archive for datasets available over a spatial area of interest and in a defined time window, downloading them, applying the Sen2Cor atmospheric correction algorithm to compute surface reflectances, merging adjacent tiles, performing geometric transformations, applying a cloud mask, computing spectral indices and colour images. The package is designed to be accessible to a range of users, from beginners to skilled R users. It comes with a Graphical User Interface, which can be used to set the processing parameters and launch processing operations: this feature makes sen2r accessible also for novices with limited programming experience. High-level R functions, which enable customised image processing workflows and control over intermediate steps, can be useful to experienced remote sensing researchers. Thanks to those functions it is possible to easily schedule automatic processing chains, so to manage massive processing operations. This paper describes the main characteristics, functionalities and performance of the package and higlights its usefulness as the operational back-end of service-oriented architectures, as illustrated by the Saturno project.