Error in loading evd package in R - r

I'm having problems loading the evd package in R v2.12.0. It worked fine in previous versions.
On the 32bit I get the following message:
Error: package 'evd' is not installed for 'arch=i386'
and with 64bit:
Error: package 'evd' is not installed for 'arch=x64'
There are no updates to the package (last release 2008). I've also tried reinstalling the package from the tar.gz but with no joy.
Any help gratefully received!

I have just installed and loaded evd from CRAN without any problems. I use R2.13.0 on Windows 7 (64-bit).
To install the package directly from CRAN, use:
install.packages("evd")
Then to load it:
library(evd)

I had this problem with many packages when I upgraded to 2.12.2 from 2.11.0. I copied the library from the old installation into the new one. I presume to problem is due to a change in the way packages are structured. To solve it I just reinstalled everything from CRAN:
install.packages(.packages(all.available=T))

R2.12.0 was changed to make it easier to run R on multiple architectures on the same machine (for example, running 32-bit and 64-bit versions). This means that each package needs to be installed for a specific architecture.
The fix is to remove your existing packages (back them up first, natch), then reinstall them.

Related

Tidyverse not installing

I'm having a bit of a pickle right now with the package tidyverse, that I need for an assignment on layering maps. I tried installing the package using install.packages("tidyverse") and install.packages ("tidyverse", dependencies = TRUE) but when I ran library(tidyverse) it wasn't installed. I searched online and found that I had an older version of RStudio IDE so I uploaded the latest version (1.3.1056).
After installing the newest version, I reinstalled the package but R tells me the following:
"Rtools is required to build R packages but is not currently
installed".
So, I did it, but the R tells me Rtools package is not available for R version 3.5.3.
What can I do to use tidyverse?
It could be a permissions issue, try setting the directory for where you install R packages/libraries on your computer using libpaths. I have to do this on my work laptop because the university has it set up to store things like this in a tempporary directory on the remote server which isn't desirable.
.libPaths("C:/R")
.libPaths()

R package was installed by version with different internals

On my Win 7 Ent x64 I installed RStudio R-3.4.2.
I installed few packages that I need (RPostgreSQL, sqldf, etc..)
But when I'm executing code, these libraries give me errors:
library(RPostgreSQL)
Error: package ‘RPostgreSQL’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning message:
package ‘RPostgreSQL’ was built under R version 3.5.0
All of the packages are downloaded from CRAN. RPostgrSQL is 0.6-2 version.
I'm pretty sure that solution is quite simple, but I searched a lot and still cannot find the solution.
How did you install the package RPostgreSQL? If you used
install.packages("RPostgreSQL") on your Windows it installed using binaries, which may have been built using a different R version. In your case, 3.5.0 vs 3.4.2.
Try using install.packages("RPostgreSQL", type="source"). This way your machine will compile the package from source using your version of R, and it should work.
If the package needs C/C++/Fortran compilation, you will als need RTools installed on your machine.
You can try to find all packages installed with the old version R like this:
grep 'Built: R 3.4' /usr/local/lib/R/site-library/*/DESCRIPTION > temp
and then you can uninstall the packages with remove.packages()

R-Studio on OSX can't load mosaic package

I am running OSX 10.10, R-Studio Version 0.99.484, and R version 3.2.2.
I just made a fresh install of R and R-Studio using the installers from their respective websites. I use install.packages to install "mosaic" and then I try loading it using library, but it gives me the following error:
library("mosaic", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library")
Error : object ‘dendro_data.hclust’ is not exported by 'namespace:ggdendro'
Error: package or namespace load failed for ‘mosaic’
I tried reinstalling ggdendro but nothing. Does anyone have any advice on how to deal with this issue?
I encountered this same error and seem to have somewhere along the way resolved it. Steps taken include:
cleaned out my libraries (local and System)
used Disk Utility to repair any odd permissions
reinstalled R
opened RStudio and imported package with dependencies from the repository:
> install.packages("mosaic", lib="/Library/Frameworks/R.framework/Versions/3.2/Resources/library")
console prompted me to choose the older precompiled package or the newer, I chose older
Do you want to install from sources the package which needs compilation?
y/n: n
mosaic loaded happily
> library("mosaic", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library")

R install package RevoScaleR

In trying to install package "RevoScaleR", I get the following error. I have tried installing this package with various versions of R but get the same error every time. Does anyone have any idea why?
install.packages("RevoScaleR")
Warning in install.packages :
package ‘RevoScaleR’ is not available (for R version 3.1.2)
Any help is appreciated.
Just to update this post,to install the RevoScaleR package you need to install Microsoft R client, see here for details:
https://www.blue-granite.com/tutorials/sql-server-r-services
R Client includes the ScaleR (rx[…]) functions in the RevoScaleR package. I don't believe this package is open source so isn't available on cran, install.packages() therefore won't work.
The RevoScaleR package is only available if you install the Microsoft R Client or if you use Microsoft RStudio Server via Azure. After you install this you don't need to do install.packages("RevoScaleR") for it is already installed.
R Studio will automatically have the R version [64-bit] C:\Program Files\Microsoft\R Client\R_SERVER under "Global options"
The link below gives more detail information about Microsoft R client. Once you install Ms R client and update the R-studio path to the R client you don't need to install 'RevoScaleR' anymore, it comes pre-installed with Microsoft R client. Read the link fore more.
https://msdn.microsoft.com/en-us/microsoft-r/r-client-get-started
I am not sure what R version you are currently using but the latest stable version is 3.1.2. If the package installation warning is telling that the package you're trying to install is not available, that basically means that the package developer has not yet made a version of the package that is compatible with the R version you're currently running.
If you really need to use this package (if your work heavily depends on it and you are on some kind of deadline) I would advise to install an earlier version of R (like 3.1.1 or 3.1) and do your work with it.
I would also suggest that you reach out to Revolution Analytics, as suggested by Andrie.
Thanks!
You just have to set the propper CRAN repos:
options("repos" = c(CRAN = "https://mran.microsoft.com/"))
and then
install.packages("RevoScaleR")
will run properly.

Can't install bigrf package

I'm having some extremely frustrating difficulty installing the bigrf R package.
I have tried the following:
install.packages('bigrf',repo='https://github.com/aloysius-lim/bigrf.git',type='source')
^^with dev mode on
install_github("aloysius-lim","bigrf")
install.packages("bigrf",source=true)
These have all been tried on R build 2.14 (which bigrf was built on), 2.15, 3.0.2 and 3.1.1
I am getting a not available for build x' every time.
Is bigrf defunct? I have seen a couple of posts here on SO which have used various builds of R requesting help with bigrf. the solutions IO have tried came from these threads :/
To install the current version of bigrf on CRAN:
install.packages("bigrf", dependencies=TRUE)
To install the development version on GitHub:
library(devtools)
install_github("bigrf", repo='aloysius-lim/bigrf')
Package ‘bigrf’ was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2015-11-21 as check problems were not corrected despite reminders from CRAN people that's what the note i get from the https://cran.r-project.org/web/packages/bigrf/index.html

Resources