The problem with the launch of the epiR package - r

please could you help me to solve the problem with the launch of the epiR package?
I installed this package from CRAN via RStudio. The installation went fine, but when I try to run this package, I get the following message:
> library(epiR)
Download required package: survival
Error: Failed to load package or namespace for 'epiR': .onLoad failed in loadNamespace() for 'units', details: call: ud_init(path) error: no database found!
Tell me, please: what is the problem and how to solve it? Other packages (including those installed today) do not have this problem.

Related

rjags failed to load and R Failed to locate any version of JAGS

I am trying to use the package zoib and rjags. I have the latest version of R and have downloaded the latest version of JAGS as well.
Each time I install zoib and rjags it says it is successful but when I try to load them I get the following:
Error: package or namespace load failed for ‘rjags’:
.onLoad failed in loadNamespace() for 'rjags', details:
call: fun(libname, pkgname)
error: Failed to locate any version of JAGS version 4
Error: package ‘rjags’ could not be loaded
Is this a problem with the library from which R is loading packages from? Is this a version compatibility issue? Please help.

Problem with sf package in R: How can I solve it?

Got the following error message after installing "sf" package in R.
It seems to have something to do with a prior installation of "tmap".
I get the same error message for library(tmap).
R version 4.0.2
install.packages('sf')
library(sf)
Fehler: package or namespace load failed for ‘sf’:
.onLoad in loadNamespace() für 'units' fehlgeschlagen, Details:
Aufruf: udunits_init(file.path(.get_ud_xml_dir(), "udunits2.xml"))
Fehler: Error in function udunits_init: Can't open installed, default, unit database
is there anything I can do? I am completely lost.
After reading several threads, the solution that worked for me was to install and manually load the package udunits2.

R error loading package rJava and openNLP

I get this error message while trying to load the rJava or the openNLP packages through the function library(openNLP) or library(rJava):
Error: package or namespace load failed for ‘rJava’:
.onLoad in loadNamespace() for 'rJava' failed, details:
call: dirname(this$RuntimeLib)
error: a character vector argument expected
I have no problems loading other packages, e.g. NLP.
Does somebody know what the problem is?
I have updated the Java SE Development Kit and now I get no error message anymore. So this seems to be the solution for the problem.
I solved this problem by installing Java SE Development Kit 8.
Link for Download: http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html

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)

Error while installing R packages : Tcl/Tk support is not available on this system

I am using Linux- fedora 14 64 bit machine. While installing some of R packages , eg : DEGseq and sqldf , I am facing this error. I manually install all tcl and tk devel and core libraries using yum but the problem still persisting.
The error i am encountering while installing packages:
Warning: S3 methods ‘$.tclvar’, ‘$<-.tclvar’, ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Tcl/Tk support is not available on this system
Error : package/namespace load failed for ‘tcltk’
Error : unable to load R code in package ‘gsubfn’
ERROR: lazy loading failed for package ‘gsubfn’
* removing ‘/home/xuserL/R/x86_64-unknown-linux-gnu-library/2.15/gsubfn’
ERROR: dependency ‘gsubfn’ is not available for package ‘sqldf’
* removing ‘/home/xuser/R/x86_64-unknown-linux-gnu-library/2.15/sqldf’
I am unable to find the solution even after googling about this error.
Please tell me the set of steps i need to follow in order to sort out this problem?
Thanks in advance :)

Resources