Please give me solution..
if (!require('SnowballC',character.only=TRUE))
install.packages('https://cran.r-project.org/bin/windows/contrib/3.4/SnowballC_0.5.1.zip', repos=NULL, dep=TRUE);
library('SnowballC')
when i use this command..I am getting message like
Warning message: In library(package, lib.loc = lib.loc, character.only
= TRUE, logical.return = T RUE, : there is no package called 'SnowballC' Warning message: package 'SnowballC' was built under R
version 3.3.1
Binary package compiled with different version of R
Warning message:
package ‘SnowballC’ was built under R version 3.3.1
By default, R will install pre-compiled versions of packages if they are found. If the version of R under which the package was compiled does not match your installed version of R you will get the message above.
The solution is to download the package source and install by hand with e.g.:
#File name might be different
R CMD INSTALL SnowballC_0.5.1.tar.gz
Source: http://mazamascience.com/WorkingWithData/?p=1185
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 ?
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 am trying to use the saveXML code in R, but it is not working. When I run the saveXML code, I get the following error:
saveXML(doc, "countryPlain.kml")
Loading required package: Rcompression
[1] "countryPlain.kml"
Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘Rcompression’
2: In saveXML(doc, "countryPlain.kml") :
Rcompression is not available, so not attempting to build a KMZ file
When I try to install Rcompression, it does not work because it is not available for R version 3.2.2. Is there another package/code that does the same thing as saveXML that is available for R version 3.2.2?
I am trying to install an R package from its source file. The package could be installed only on R.2.9.2. So I uninstall my new version of R, installed the mentioned version and tried to install package like this:
install.packages(pathToPackage, repos="NULL", type="source")
But I am receiving this error:
argument 'lib' is missing: using 'C:\Users\hora\Documents/R/win-library/2.9'
Warning: unable to access index for repository NULL/src/contrib
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘c://Users//hora//Downloads//affymicro.zip’ is not available
What is the solution? Thank you in advance.