> install.packages("gafit")
Warning message:
package ‘gafit’ is not available (for R version 3.2.2)
> install.packages("Rdonlp2")
Warning message:
package ‘Rdonlp2’ is not available (for R version 3.2.2)
first Download gafit package to your local,
then run the following command in R/Rstudio
install.packages(path_to_file, repos = NULL, type="source")
path_to_file is path where you store your gafit package.