ffbase package fails to load - r

I have just installed the ff and ffbase packages in R, and while library(ff) works, library(ffbase) returns the following error:
> library(ffbase)
Error in library.dynam(lib, package, package.lib) :
DLL ‘fastmatch’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ffbase’
I use the latest version R 3.0.2.
Any help how I can fix that error will be appreciated dearly. I have uninstalled R and reinstalled everything, to no avail.

Related

Error: package or namespace load failed for ‘CGPfunctions’ [duplicate]

I am getting the following error when I am loading a few libraries in R:
library(forecast)
Error : object ‘f_eval’ is not exported by 'namespace:lazyeval'
In addition: Warning message:
package ‘forecast’ was built under R version 3.3.2
Error: package or namespace load failed for ‘forecast’
library(tsoutliers)
Error : object ‘f_eval’ is not exported by 'namespace:lazyeval'
In addition: Warning message:
package ‘tsoutliers’ was built under R version 3.3.2
Error: package or namespace load failed for ‘tsoutliers’
I have tried reinstalling the packages but it didn't help. Also, I was able to use the forecast package previously but I started facing this error post the installation of tsoutliers package.
How can I resolve this issue?
This should do the job for you:
install.packages('lazyeval')
In the future, try and provide a bit more about your system and install, using the output from:
sessionInfo()

Why do I get an error when I try to load ggplot2 in R?

When I run:
library("ggplot2")
I get the error below:
Error: package or namespace load failed for ‘ggplot2’:
object ‘enexprs’ is not exported by 'namespace:rlang'
In addition:
Warning message:
package ‘ggplot2’ was built under R version 3.4.4
Any idea how I can solve this issue?
Please install the latest version of rlang to solve this error.

R: object ‘set_global_graph_attrs’ is not exported from 'namespace:DiagrammeR'

I wanted to install Mxnet library and found on this forum the topic where was described how do it .
cran <- getOption("repos")
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
library("mxnet")
and then i got the error
Error: package or namespace load failed for ‘mxnet’:
object ‘set_global_graph_attrs’ is not exported from 'namespace:DiagrammeR'
what's wrong?
DiagrammeR library is installed.
There is some weird thing goes with mxnet installation on windows. I also experienced that problem a few days ago. What helped me is to install diagrammeR 0.9 manually:
# Make sure you have devtools installed already
require(devtools)
install_version("DiagrammeR", version = "0.9.0", repos = "http://cran.us.r-project.org")
require(DiagrammeR)
And after doing that, try to install mxnet - now it should work.
Let me know if it helps.
I had exactly the same problem with loading mxnet. Your suggestion of installing DiagrammeR manually seems to have fixed it. Unfortunately, it simply exposed another error.
Error: package or namespace load failed for ‘mxnet’:
.onLoad failed in loadNamespace() for 'mxnet', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/steve/Documents/R/win-library/3.4/mxnet/libs/x64/libmxnet.dll':
LoadLibrary failure: The specified module could not be found.
I think the "onLoad" function must be missing. The dll referenced above, libmxnet.dll, is exactly where it should be.

ggplot library() error R version 3.1.3

I installed ggplot2 using install.packages() function. It gets installed properly and shows in the Packages pan. However, when I run library(ggplot2), I get the following error:
library("ggplot2", lib.loc="~/R/win-library/3.1")
Error in library.dynam(lib, package, package.lib) :
DLL ‘digest’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ggplot2’
What is going on here? Can somebody help, please?

Unable to load caret package in R on R 3.1.0 on OSX 10.9

I installed the R caret package using install.packages command and did library(caret). I am recieving the following error
>library(caret)
Loading required package: lattice
Loading required package: ggplot2
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so
Reason: image not found
Error: package or namespace load failed for ‘caret’
I searched other posts and also installed OSX tcltk package from http://cran.us.r-project.org/bin/macosx/tools/ but it still does not seem to work. I also installed tcltk2 package from R but still does not work.. Kindly help
I have met the same problem with the same error message but unfortunately, just reinstalling R1.3 didn't solve the problem for me.
To solve it, I had to install X-Quartz as explained here in the "Mac OS X Trouble-shooting" section and the problems related to tcltk.
Do this and it will resolve the problem
install.packages("quantreg")
What version of R are you using? Do you use Mavericks? You may need to update to a version which includes Mavericks updates.
http://cran.r-project.org/bin/macosx/
I had the same issue. Reinstalling Quartz solved the issue
Try this, worked for me.
install.packages("caret", dependencies = T)
Once that is done, run
install.packages("pbkrtest", dependencies = T)

Resources