I'm getting the almost the same error as the previous post, but the answers there are not working for me. I was able to use sjPlot with no issues until this afternoon when I installed parameters and sandwich and clubsandwich. I don't know what else I can do to get over this.
the error:
> library(sjPlot)
Error: package or namespace load failed for ‘sjPlot’:
object ‘standard_error_robust’ was not exported by 'namespace:parameters'
In addition: Warning message:
package ‘sjPlot’ was built under R version 4.1.3
Any help would be much appreciated. Updating parameters didn't solve it. Meanwhile, is there an equivalent function for tab_model()? (since I cannot use it...). Thanks in advance.
devtools::install_github("strengejacke/sjPlot") worked for me :D
Related
I am getting the below error and don't know what is causing it.
I am following this vignette to learn MODISTools.
https://cran.r-project.org/web/packages/MODISTools/vignettes/modistools-vignette.html
library(MODISTools)
products <- mt_products()
Warning: namespace ‘cachem’ is not available and has been replaced
by .GlobalEnv when processing object ‘<unknown>’
Error in validate_key(key) : could not find function "validate_key"
I had the same problem.
validate_key() is a function from the cachem package. It seems like MODISTools depends on this package but not always installs it. For me, installing and loading the cachem package manually resolved the error.
I am trying to use the cluster.vcov in R but it keeps telling me
cluster.vcov(regression1, data$country
Error in cluster.vcov(regression1, data$country) : could not find function "cluster.vcov
I have tried installing the package "multiwayvcov" but it says that such package does not exist. Does anybody know how to solve this issue?
Thank you very much,
Max
multiwayvcov package has been deprecated as mentioned here. The author recommends to use the sandwich package now which has the same functionality.
However, I can install both multiwayvcov and sandwich package on my system with R version 4.0.3 using install.packages('multiwayvcov') and install.packages("sandwich").
this is my first time posting a question here, so please forgive me if it is not clear enough or if I haven't supplied enough information.
I'm trying to load in the plm library (for panel regression) in R after having installed it and get the following error:
install.packages("plm")
library(plm)
R then gives me this error:
> library(plm)
error: package or namespace load failed for ‘plm’:
object of type 'closure' is not subsettable
My R version is 3.6.3
Any help would be much appreciated!
Please let me know if you need more info to help me solve the issue.
There's an older post from a year ago, here, that touches upon a similar issue. Now I'm facing almost axactly the same issue as Bikash was approximately a year ago. However, the solution suggested there, does not seem to work in my case.
The error message when loading {sjPlot} with library(sjPlot) reads:
Error: package or namespace load failed for ‘sjPlot’
It also tells me (loosely translated from German):
Error: Object ‘asis_output’ not exported by 'namespace:knitr'
So whatever that means, I thought I try loading {knitr} first and then try loading {sjPlot} again. But I ran into the exact same error message...
Thanks in advance!
very new to R, and this is my first question so please be kind :)
I was working with the choroplethr/choroplethrMaps/choroplethrZip packages for a few days without any issues, but suddenly, I keep getting the an error when I try to visualize a map--I have pasted the output below, and any help would be deeply appreciated.
The most perplexing issue for me is why it suddenly stopped working--I didn't add anything to the script--I get the same error with choroplethr/choroplethrMaps as well. Many thanks for your expertise and patience!
data(df_pop_zip)
choro = ZipChoropleth$new(df_pop_zip)
choro$title = "2012 ZCTA Population Estimates"
choro$ggplot_scale = scale_fill_brewer(name="Population", palette=2, drop=FALSE)
choro$set_zoom_zip(state_zoom="florida", county_zoom=NULL, msa_zoom=NULL, zip_zoom=NULL)
choro$render()
Error in FUN(X[[i]], ...) : attempt to apply non-function
I believe that your error can be solved by typing the following:
# install.packages("devtools")
library(devtools)
install_github("choroplethr", "arilamstein")
library(choroplethr)
If I install choroplethr from CRAN I can replicate your error. If I install it from github I can solve it. Note that the actual R code is currently the same in both github and CRAN, because I recently submitted a new version to CRAN.
When I load the version of choroplethr from CRAN I get this warning:
> library(choroplethr)
Warning message:
package ‘choroplethr’ was built under R version 3.2.4
However, the current version of R is 3.2.3. So it looks like CRAN is using different version of R for what they are distrbuting to the public and what they are using to build packages. I'm not sure why this is.
Note that while I think this solution will work for you, I don't find it particularly satisfying or elegant. I could probably install the development version of R to see if I can replicate (and debug) the issue myself. But at this point I'd rather wait until they officially release the new version to see if it is still present. I really don't have much experience with the development versions of R.