This is a breadboard friendly breakout board for the Maxim MAX30105 reflectance, particle, and pulse ox sensor. This library should work with other MAX3010x sensors including the MAX30102, MAX30101, ...
Fortunately, Visual Studio Code has a little terminal you can use to run commands without needing to swap between windows.
This VS Code extension provides support for the R programming language, including features such as R language service based on code analysis, interacting with R terminals, viewing data, plots, ...