Hi,
This is what happens when I run some code to diagnose the issue. First, I wanted to see what version of R was required for the package. All packages uploaded to CRAN (which is where your packages are pulled from when you do install.packages()) are required to include this information, so you can do packageDescription("gmwm") to find out. But this is what I get:
> packageDescription("gmwm")
[1] NA
Warning message:
In packageDescription("gmwm") : no package 'gmwm' was found
I searched for the package through the "Available CRAN Packages By Name" (https://cran.r-project.org/web/packages/available_packages_by_name.html) and it was not listed. I went to their GitHub and followed their link to their CRAN page, and got the following message:
Package ‘gmwm’ was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2017-04-16 as installation errors were not corrected
despite reminders.
Please use the canonical form https://CRAN.R-project.org/package=gmwm
to link to this page.
You can view this message here: https://cran.rstudio.com/web/packages/gmwm/. This suggests you probably can't install that specific package using install.packages() anymore.
However, you can still access gmwm from the CRAN archive when it was available: https://cran.r-project.org/src/contrib/Archive/gmwm/.
I am not sure about the other packages you mentioned that you are having issues with, but you can use the steps I take as a general guideline to help diagnose what version of R is required for a package, and some steps you can take if packageDescription() doesn't work.