Then it didn't work: remotes::install_version() is basically equivalent to install.packages(), just that it lets you choose the version. What is surprising then is that it didn't fail during installation.
Also, I tried running that on my computer (Windows 10, R4.1.1), and it worked, I can load and use that package.
One thing, if the installation was successful but the library(OutlierDetection) call fails, you can try not loading the package, and directly using OutlierDetection::OutlierDetection() or the relevant function.