A post from Apr 2022 on the same problem, which is that Jammy is on v3 of the library, linked to this kludge
You can force the installation of libssl1.1 by adding the ubuntu 20.04 source:
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt-get update
sudo apt-get install libssl1.1
Then use your commands to install
Then delete the focal-security list file you just created:
sudo rm /etc/apt/sources.list.d/focal-security.list
I would pass given the potential grief of being so far out of bounds. Consider dockerizing Ubuntu focal and put RStudio there