Rcmndr plugin not running - r

I am trying to run this rcmndr plugin for my class and it's not working. I installed all the necessary packages and it appeared to install correctly but I am getting this package or namespace load failure. The GUI appears for a split second when I enter the library command, then disappears with the error. It seems to be an issue with the namespace and .onattach but I couldn't find any existing answers or resources for this issue.
https://cran.r-project.org/web/packages/RcmdrPlugin.BCA/index.html
> library(RcmdrPlugin.BCA)
Loading required package: Rcmdr
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: sandwich
Rcmdr Version 2.2-3
Loading required package: BCA
Warning: package 'BCA' was built under R version 3.2.3
Loading required package: flexclust
Warning: package 'flexclust' was built under R version 3.2.3
Loading required package: grid
Loading required package: lattice
Loading required package: modeltools
Loading required package: stats4
Error : .onAttach failed in attachNamespace() for 'RcmdrPlugin.BCA', details:
call: get(Menus[m, 5])
error: object 'importRODBCtable' not found
In addition: Warning messages:
1: package ‘RcmdrPlugin.BCA’ was built under R version 3.2.3
2: package ‘Rcmdr’ was built under R version 3.2.3
3: package ‘RcmdrMisc’ was built under R version 3.2.3
4: package ‘car’ was built under R version 3.2.3
Error: package or namespace load failed for 'RcmdrPlugin.BCA'

I got alternative to run this plugin in R commander.
Open R Commander by using:
library(Rcmdr)
R Commander dialogue box will appear.
In R Script load BCA library-
lapply(list('BCA', 'splines', 'RcmdrMisc', 'car', 'sandwich', 'flexclust', 'grid','lattice','modeltools','stats4','RODBC'), require, character.only = TRUE)
Click on Submit button.
If you don't have RODBC package (which is not there in my case), install it separately and then run above commands. To install use:
install.packages("RODBC")
And now you exactly have what you will get after loading RcmdrPlugin.BCA library.

I faced a similar situation. Having tried a bunch of things - none worked - I finally uninstalled R and deleted the remaining files from under the "Program Files" directory in Windows. I then reinstalled R and RcmdrPlugin.BCA and this time it worked.
You could also refer to this URL for help http://r.789695.n4.nabble.com/Unable-to-run-RcmdrPlugin-survival-using-3-2-2-with-Windows-10-td4711796.html

Related

What to do when the package (qpcR) downloads in R but cannot use a function in the package?

I am trying to run an old script and I successfully downloaded the qpcR package. However, it will not let me use the HQIC command. I have tried uninstalling qpcR and reinstalling it. I keep getting the following error down below. What can I do?
Loading required package: MASS
Warning: package ‘MASS’ was built under R version 4.0.5
Loading required package: minpack.lm
Loading required package: rgl
Loading required package: robustbase
Warning: package ‘robustbase’ was built under R version 4.0.5
Loading required package: Matrix

Error while installing R Commander

library(Rcmdr)
Loading required package: RcmdrMisc
Error: package or namespace load failed for ‘RcmdrMisc’:
object ‘print.rcorr’ is not exported by 'namespace:Hmisc'
Error: package ‘RcmdrMisc’ could not be loaded
Or, as a temporary workaround until fixed: install old Version (r-oldrel) of Hmisc: https://cran.r-project.org/package=Hmisc

RcmdrMisc could not be loaded

I successfully installed and ran Rcmdr on my Windows 8.1 laptop. After a couple days (with it being turned on and off repeatedly), I tried running library(Rcmdr) and got the following error
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: sandwich
Error in readRDS(pfile): unknown input format
Error: package 'RcmdrMisc' could not be loaded
Running traceback() shows:
3: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call,
= FALSE, domain = NA)
2: getRequiredPackages2(pkgInfo, quietly = quietly)
1:library(Rcmdr)
Any help would be much appreciated!
Install the RcmdrMisc package as well. The R commander needs htmlTable package as well. Hence, installing the packages
RcmdrMisc
htmlTable
Should resolve the issue

bigRF asking for R version 3.1

There's a similar question out there (How do I install an older R package?), but in my instance, bigRF installs, but then I get an error when I try to load it. What's interesting is that the other SO post indicates that bigRF only works in previous versions of R, while the error is saying that I need a future version of r (3.1) than the current version (3.0.2).
library(bigrf)
Loading required package: bigmemory
Loading required package: bigmemory.sri
Loading required package: BH
bigmemory >= 4.0 is a major revision since 3.1.2; please see packages
biganalytics and and bigtabulate and http://www.bigmemory.org for more information.
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigrf/libs/bigrf.so': dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigrf/libs/bigrf.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.1/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigrf/libs/bigrf.so
Reason: Incompatible library version: bigrf.so requires version 3.1.0 or later, but libR.dylib provides version 3.0.0
In addition: Warning message:
package ‘bigrf’ was built under R version 3.1.0
Error: package or namespace load failed for ‘bigrf’
Thoughts on how to resolve?
Yep, looks like install.packages("bigrf", type="source") works.

cran Package "party_1.0-9" windows version has issue for instruction called library(party)

Am using R Studio windows version.
I have installed cran Package "party_1.0-9" windows version (for decision tree related tasks). It showed as succesful installation.
The moment i gave the instruction library(party), it displayed following error messages
Loading required package: grid
Loading required package: zoo
Attaching package: ‘zoo’
The following object is masked from ‘package:base’:
as.Date, as.Date.numeric
Error: package ‘sandwich’ required by ‘party’ could not be found
In addition: Warning messages:
1: package ‘party’ was built under R version 3.0.2
2: package ‘zoo’ was built under R version 3.0.2 "
I repeatedly uninstalled and installed, the problems still remains the same. Please help.

Resources