I am writing the code
Needs["RLink`"]
RLinkResourcesinstall[]
and I obtained the output
Out[3]= {PacletObject[RLinkRuntime, 9.0.0.0, <>]}
Then I tried to install R with InstallR and the output is $Failed

I have Windows 10 and the my version of Mathematica 12.1. Any help to solve this error would be appreciated. Thanks.
Also tried to specify the path with
