I just updated to R 2.11.1 and after installing ggplot2, I tried
library(ggplot2)
and got
Loading required package: proto
Loading required package: grid Loading
required package: reshape Loading
required package: plyr Loading
required package: digest Error in
eval(expr, envir, enclos) : could not
find function "proto" In addition:
Warning message: In library(package,
lib.loc = lib.loc, character.only =
TRUE, logical.return = TRUE, :
there is no package called 'proto'
Error : unable to load R code in
package 'ggplot2' Error:
package/namespace load failed for
'ggplot2'
Any help appreciated.
install.packages('ggplot2', dep = TRUE) would do the trick... install proto package
Open R shell and type following in it
install.packages('ggplot2', dep = TRUE)
then it will ask you to select the mirror, select closest one and it will install it and solve your problem.
Also have had troubles, when installing ggplots2, but here is a curious solution (tested on windows):
I installed via RStudio. Both from Tools->install packages and by typing install.packages("ggplots2", dep=T). It didn't work because it kept not installing the dependencies.
I then installed direct by R gui install.packages("ggplots2", dep=T) and everything went well.
I had the same problem and this did the trick.
Install the lazyeval package.
Then install ggplot2
Load the ggplot2 library and everything will hopefully work fine.
Steps
1.Go To -> Tools
2.Click -> Install Packages
3.In Packages Text Box Type ggplot2
Check the checkbox & install dependencies
And your good to go !
Related
I'm trying to load some RData files with the function load, but I get this message:
Warning: namespace ‘DESeq’ is not available and has been replaced
by .GlobalEnv when processing object ‘cds3’
Loading required package: DESeq
Error in .requirePackage(package) :
unable to find required package ‘DESeq’
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘DESeq’
Which means that this file can only be opened if I have the old DEseq package installed. I know it's an old package, but I have looked everywhere and searched the bioconductor guide for this package, and tried this code:
source("https://bioconductor.org/biocLite.R")
biocLite("DESeq")
and got this error
Error: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see https://bioconductor.org/install
I already have DEseq2 but I need the first DEseq. I really need to load those files, what can I do ?
When starting RStudio the following message appears: Loading required package: sp. I try to install the sp package and the message appears:
Warning in install.packages :
package ‘sp’ is in use and will not be installed
That way, I can not install it. Also, because of this error, I'm having trouble calling the dplyr package. How do I fix this error?
Try this-
detach("package:sp", unload = TRUE)
install.packages("sp", dependencies=TRUE)
Has anyone else tried to load the RQuantLib package for R 3.5.0?
I tried (which has worked before):
install.packages("drat", dependencies = TRUE)
drat::addRepo("ghrr")
install.packages("RQuantLib", type = "binary")
but get the error message:
Warning: unable to access index for repository https://ghrr.github.io/drat/bin/windows/contrib/3.5:
cannot open URL 'https://ghrr.github.io/drat/bin/windows/contrib/3.5/PACKAGES'
Warning message:
package ‘RQuantLib’ is not available (for R version 3.5.0)
You can try this:
library(devtools)
install_github("eddelbuettel/rquantlib")
Or equivalently (based on comment by Dirk Eddelbuette)
install.packages("RQuantLib", type="source")
I installed the package required and set my library using install.packages("bipartite",lib="C:/Users/Owner/Documents/Rwork")
When i finish installing package, it says the downloaded binary packages are in C:\Users\Owner\AppData\Local\Temp\RtmpuGqI8Q\downloaded_packages
I checked my directory using dir(), all the things in package bipartite are in C:/Users/Owner/Documents/Rwork
When i try to load the package using this command, library("bipartite", lib.loc="C:/Users/Owner/Documents/Rwork") the error appear
Error: package ‘vegan’ required by ‘bipartite’ could not be found
In addition: Warning message:
package ‘bipartite’ was built under R version 3.3.3
Checked my dir() again and it stated that there is a "vegan' in my working directory
Tried to look at .libPaths() it show this
[1] "C:/Users/Owner/Documents/R/win-library/3.3"
[2] "C:/Program Files/R/R-3.3.2/library"
How do i solve this? Do i need to change the library path?
I could reproduce your error. It looks like R does not install the dependencies. This works however:
library(permute, lib.loc = "C:/Users/Owner/Documents/Rwork")
library(vegan, lib.loc = "C:/Users/Owner/Documents/Rwork")
library(statnet.common, lib.loc = "C:/Users/Owner/Documents/Rwork")
library(network, lib.loc = "C:/Users/Owner/Documents/Rwork")
library(sna, lib.loc = "C:/Users/Owner/Documents/Rwork")
library(bipartite, lib.loc = "C:/Users/Owner/Documents/Rwork")
It's just a workaround. Maybe this can also help:
library(devtools)
load_all("C:/Users/Owner/Documents/Rwork")
I made an R-package called TRIMmaps and tried to install it with the command
R CMD INSTALL TRIMmaps_v1.12.0
I received the following error message:
Error in unloadNamespace(package) :
namespace ‘Rcpp’ is imported by ‘plyr’ so cannot be unloaded
Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) :
“Rcpp” version 0.11.2 cannot be unloaded.
I do need package plyr, however, because when I remove it I get the message:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘plyr’
I removed both packages plyr and Rcpp and installed them again. My current version of Rcpp now is 0.11.5, but when I try to install the TRIMmaps-package again, I get the same error message as above including the line “Rcpp” version 0.11.2 cannot be unloaded. Although I have removed the older Rcpp-version and replaces it by 0.11.5, here still a problem occurs with 0.11.2.
How do I solve this? Any hint is appreciated.
I get a similar error. Minimal conditions to reproduce it seem to be:
Depend on a package x (in my case reshape)
In your vignette load a packge y (in my case plyr) that also imports or depends on x.
The vignette builds fine if you build it outside of the package building or checking process, but throws the error that you indicate otherwise. The error is also R version and maybe site specific, since it goes away with R 3.2.0 when trying to build the package on a different machine.
The easiest way is to close (R-Studio), or open a new (GUI), and do the job, and you can copy your code and reuse them.
**#This package is not installed ,but use tamp :
install.packages("tamp", dependencies=TRUE)
If you mean TRIM MAP SITE:
https://www2.gov.bc.ca/gov/content/data/geographic-data-services/topographic-data/raster-base-maps
#derderi**
In search box, type command prompt
In the command prompt, change directory to the place that contains the R package.
Build R package using R CMD build pkgName. For example I use R CMD build cum*. A tar.gz
The file is built under the working directory.
There's a PDF Tutorial that goes more in-depth.