Skip to content

Problem installing ggplot2 in R 3.2.3

3 messages · jessy, Sarah Goslee, Jeff Newmiller

#
Hi,
I am trying to install ggplot2 in R software but Im getting the following
error message:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck
= vI[[j]]) :
  there is no package called ?Rcpp?
Error: package or namespace load failed for ?ggplot2?

Please help me with this issue, whats to be done to rectify it.

Thanks

*Dr. Jesitha Abdul Salam*
*Postdoctoral Researcher*
*School of Marine Sciences*
*Cochin University of Science and Technology*
*Kerala-682016*
#
You should install the Rcpp package, as the error message is telling you.

You could also use the dependencies=TRUE argument to install.packages().

Sarah
On Mon, Mar 7, 2016 at 2:23 PM, jessy <jesitha.salam at gmail.com> wrote:
#
Apparently you do not have a required package installed that ggplot2 depends on. How you arrived at that condition is not clear because you have not told us the minimum information mentioned in the Posting Guide.

Since the typical way to install ggplot2 is to use the

install.packages( "ggplot2" )

command,  be sure to let us know what happened when you did that. That command by default installs dependencies as well as the package you asked for.  That means copy and paste your input command and the resulting output from R into your email. Also give us the output from

sessionInfo()