Next time please post the error when you ask for help and also any material you used.
There's 2 errors your getting and I can replicate them on my system (macos). So the good (or bad) news is that it's not just you. First, the two packages skipped are on Bioconductor, if you google you'll find out how to install them.
Second, I think this is an issue with how devtools is trying to install. Something has gone wrong probably with how the authors have setup the package on github (badly). I suggest you download the source files and install manually like this:
install.packages("~/Downloads/mapsnp_0.1.tar.gz", repos = NULL, type = "source")
This is how I installed the package.
Source files from here: https://github.com/csuzfq/mapsnp_pkg/blob/master/mapsnp_0.1.tar.gz
P.S Make sure you install the two bioconductor packages before installing mapsnp. Then load the two bioc packages first then load mapsnp just to be sure.
Answer in How to install packages "mapsnp" in R?
That is the similar post I referred to in my question. When I try doing what is suggested there, it does not work: