Is not an exported object from 'namespace:ggplot2'? - r

I'm tring tu use ggmice with ggplot2 but, when I try give me back this error.
I saw some explanations here but none solved my problem.
ggmice(m.out, ggplot2::aes(.imp, Pixel_Deforested)) +
geom_point()
Error: 'as_label' is not an exported object from 'namespace:ggplot2'

ggmice developer here! If the problem persists after updating R/ggplot2, please post an issue on Github, then I'll look into it! https://github.com/amices/ggmice/issues

Related

object 'rlang_tilde_eval' not found after library updates

I have been using the combcoint library for quite some time. Today I installed some new packages in R for my work and since then I have been getting an error, when I try to run the function bayerhanck. The error itself:
Error in p_value_Fisher_bc ~ poly(stat_Fisher_all_bc, 12) * k_dummy :
object 'rlang_tilde_eval' not found
I assume this there is a technical solution to this, but I have not been able to find it.

Parsing error in Google spreadsheet for ImportHTML

I am trying to the 5th table (Shareholders) from the website but there was a parsing error.
Could anyone advice how to solve it?
My code:
=ImportHTML(“https://www.marketscreener.com/YANGZIJIANG-SHIPBUILDING-6499571/company/”, “table”, 5)
It seems there is something wrong with the quotation marks you used. Please try
=ImportHTML("https://www.marketscreener.com/YANGZIJIANG-SHIPBUILDING-6499571/company/", "table", 5)
and see if that helps?
Resolve parsing error by using ';'s instead of ','s

devtools install_github fails

I've tried everything I could think of but still can't get this to work. I think it has to do with indentation as it works fine locally(build version). Here is the error I get:
Error in read.dcf(path) :
Found continuation line starting ' dplyr(>= 0.7.8), ...' at begin of record.
Sample of my code:
Imports:
dplyr(>= 0.7.8),
caret(>= 6.0-81),
tidyr(>= 0.8.2),
reshape2(>= 1.4.3),
plyr(>= 1.8.4),
magrittr(>= 1.5)
How I tried to install:
devtools::install_github("https://github.com/Nelson-Gon/manymodelr")
I did get the same earlier and solved it by limiting my description to a single line. Thanks in advance.
The issue has been fixed like this which also worked for me according to: https://github.com/r-lib/devtools/issues/1978
Run devtools::install_github("r-lib/remotes")
Restart R.
Run devtools::install_github("...") for the intended package.

what happened to missing.pattern.plot or mp.plot?

I have the package mi installed.
But when I try to run mp.plot (as Thomas Leeper does in this tutorial:) I get the following error message:
mp.plot(mydf)
Error in mp.plot(mydf) : could not find function "mp.plot"
On one website this is called missing.pattern.plot, but that also does not work:
missing.pattern.plot(mydf)
Error in missing.pattern.plot(mydf) :
could not find function "missing.pattern.plot"
Any idea what the issue might be?
I do not really care much if I cannot use this function, but I'm curious as to what is going on in case I later need to use a graph that I really need.

GoogleVis, Geomap Plot error

When I want to create the map using the gvisGeoMap() from googleVis, I get error:
## Using the google visualization API with R
library(googleVis)
input<- read.csv("data.csv")
select<- input[which(input$Subgroup=="Total 5-14"),]
select<- input[which(input$Subgroup=="Total 5-14 yr"),]
Map<- data.frame(select$Country.or.Area, select$Value)
names(Map)<- c("Country", "Percentage")
Geo=gvisGeoMap(Map, locationvar="Country", numvar="Percentage",
options=list(height=350, dataMode='regions'))
plot(Geo)
#starting httpd help server ... done
#Error in ifelse(interactive(), getOption("browser"), "false") :
#replacement has length zero
The above is the error in the "RGui". The error message in "RStudio" is differet:
#object of type 'closure' is not subsettable
and the browser does not fire at all. The HTTP server works fine since I can simply call help pages.( for example ?googleVis will fire up the browser and give the help page). The "Geo" object in the code above is fine and contains the html code only that the plot() does not do what it is supposed to do (I can manually run the html file in the temp folder and see the results). The example above is available here.
I would appreciate your clues.
Thank you
This is the result of correspondance with the the Authors of the packages. It seems that there was a bug that prevented the plot to work properly. The released a new version. You can find the link below.
TQ
.....
Yesterday evening I realised that with version 0.3.0 of googleVis I unfortunately introduced a bug in RStudio and R on Windows.
The bug has been fixed already and a new version (0.3.1) is available from our project site (here is the link), but not on CRAN yet.
I have put a note on my blog (here is the link) to inform others as well.
I hope this helps.
Best regards
Markus

Resources