Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep hitting the error ""loop_apply" not resolved from current namespace (plyr)" in ggplot2 with example codes

Tags:

r

ggplot2

rstudio

i keep hitting this error today and I already download the plyr from github but it still doesn't work. I restarted R-studio even my PC after installing plyr..

enter image description here

like image 578
MYjx Avatar asked Jul 11 '15 02:07

MYjx


1 Answers

It appears the problem may be due to a change made to the way R resolves references to external DLLs, as mentioned halfway through the thread here.

Adding the parameter PACKAGE="plyr" to the .Call function call on line 12 of R/loop_apply.R in the source (clone from github), and then installing the package from that source (install.packages("<path to plyr source>", type="source", repos=NULL)) seems to fix it.

like image 114
Matt Craig Avatar answered Oct 05 '22 12:10

Matt Craig