i just install the estimatr 0.26.0, but it shown like this.
library(estimatr)
Error: package or namespace load failed for ‘estimatr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Formula’
thank you, i've install the Formula successcfully, but when i run the estimatr, it shown like:
library(estimatr)
Error: package or namespace load failed for ‘estimatr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
In addition: Warning message:
package ‘estimatr’ was built under R version 4.1.0
library(estimatr)
Error: package or namespace load failed for ‘estimatr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
install.packages("Rcpp")
Installing package into ‘C:/Users/Lenovo/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
This is the new one that after i restart the Rsession:
Restarting R session...
library(Rcpp)
Error in library(Rcpp) : there is no package called ‘Rcpp’
library(estimatr)
Error: package or namespace load failed for ‘estimatr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
In addition: Warning message:
package ‘estimatr’ was built under R version 4.1.0
i've just download the .tar compressed file from the https://cran.rstudio.com/, and install from package Archieve file. and installed "Rcpp", "generics", and "rlang". Finally, the "estimatr" has installed successfully.
Just for completenes, the previous error seemed to be a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.
Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) or you could choose one that is geographically closer to you.
Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.