Reputation: 21
I am fairly new to R and having some issues installing the foreign package. I get the following message:
package ‘foreign’ is not available (for R version 3.6.3)
from the following line of code:
install.packages('foreign')
Can anyone help? Thanks!
Upvotes: 2
Views: 6503
Reputation: 130
You could update to R version 4. For R version 3, there are several options using version 0.8-76. You could install from source:
install.packages("https://cran.r-project.org/src/contrib/Archive/foreign/foreign_0.8-76.tar.gz")
Alternatively, you could use an old binary. For Windows:
install.packages("https://cran.r-project.org/bin/windows/contrib/3.6/foreign_0.8-76.zip")
And for Mac:
install.packages("https://cran.r-project.org/bin/macosx/el-capitan/contrib/3.6/foreign_0.8-76.tgz")
Upvotes: 8
Reputation: 110
You can click on Tools then Install Packages.. write foreign then click Install.
Upvotes: -3