Begin with a plain Ubuntu distro from the Windows App Store. If one is already installed and you want to start from scratch simply:
wsl -t Ubuntu
wsl --unregister Ubuntu
Ubuntu
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop