Creating video recordings of R Studio and R console
OBS Studio (https://obsproject.com/) worked well for me for another statistical analysis program. For the very basic editing afterwards (cut the time that the kids ran into the room out of the video, join videos together) the video editor that comes with Windows was enough for me. 

Also see: I need help adapting my academic workflow to the COVID-19/coronavirus crisis –&#160;where do I start?