Can not install cmake in Rstudio

installr::install.cmake()

Warning message:
In download_fun(exe_URL, destfile = exe_filename, quiet = FALSE, :
cannot open URL ‘https://github.com/Kitware/CMake/releases/download/v3.21.2/cmake-3.21.2-win-x86_64.msi’: HTTP status was ‘404 Not Found’

The platform name is wrong. It should be windows, not win. This is an Rstudio issue.

-https://github.com/Kitware/CMake/releases/download/v3.21.2/cmake-3.21.2-win-x86_64.msi
+https://github.com/Kitware/CMake/releases/download/v3.21.2/cmake-3.21.2-windows-x86_64.msi

how can i solve this problem when installing Cmake, please tell me

It’s a problem with Rstudio. The URLs used to download CMake need to be updated.