I have been blithely using R for some time when suddenly I'm having trouble installing packages, specifically mfx. It appears to be downloading. But then when I input library(mfx), I get this: Loading required package: sandwich
Loading required package: lmtest
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: MASS
Loading required package: betareg
Error in get(".packageName", where) :
cannot open file 'C:/Users/Mary Graybeal/Documents/R/win-library/3.2/modeltools/R/modeltools.rdb': No such file or directory
Error: package ‘betareg’ could not be loaded
As part of my efforts to resolve it, I uninstalled and reinstalled; no help there. I use RStudio, but the same thing happens in R, and so the problem is not RStudio. Am I overlooking something really obvious here?
You have to re-install the previous package, in this case MODELTOOLS
install.packages("modeltools")
Loading required package: MASS Loading required package: betareg Error in get(".packageName", where) : cannot open file 'C:/Users/Mary Graybeal/Documents/R/win-library/3.2/modeltools/R/modeltools.rdb': No such file or directory Error: package ‘betareg’ could not be loaded
Maybe an another errors appear, you have to do the same step with each package.
Related
I'm trying to install some packages within Rstudio on my windows computer but I encounter some problems.
When I type in:
install.packages("dplyr")
I get the following error:
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
internet routines cannot be loaded
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
internet routines cannot be loaded
Warning in install.packages :
package ‘dplyr’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
internet routines cannot be loaded
Warning: unable to access index for repository https://cran.rstudio.com/src/contrib:
internet routines cannot be loaded
I've also tried to install packages in the following way:
> install.packages("C:/Users/NLFERM/Downloads/dplyr_1.0.4.tar.gz", repos = NULL, type = "source")
But here I also get an error:
ERROR: dependencies 'ellipsis', 'generics', 'glue', 'lifecycle', 'magrittr', 'R6', 'rlang', 'tibble', 'tidyselect', 'vctrs' are not available for package 'dplyr'
* removing 'C:/Users/NLFERM/Documents/R/R-4.0.4/library/dplyr'
Warning in install.packages :
installation of package ‘C:/Users/NLFERM/Downloads/dplyr_1.0.4.tar.gz’ had non-zero exit status
I already reinstalled R studio and made sure that I have the newest version of R on my computer. Does anyone know how to fix this problem?
Kind regards
Does this work in your R base?
Otherwise are you connected to internet? Or over an enterprise network where cran websites are not accessible?
trying to follow the quanteda tutorial, I'm running into problems here with the programme; executing the following code, I get error messages hinting at problems with packages I cannot resolve.
> require(quanteda)
> require(quanteda.corpora)
> require(ggplot2)
> corp_tweets <- download(url = 'https://www.dropbox.com/s/846skn1i5elbnd2/data_corpus_sampletweets.rds?dl=1')
Error in loadNamespace(name) : there is no package called ‘digest’
As the package seems to be missing, I tried loading it and get:
> require("digest")
Loading required package: digest
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘digest’
Now, I try installing it - again, without success.
> install.packages("digest")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/digest_0.6.20.zip'
Content type 'application/zip' length 223139 bytes (217 KB)
downloaded 217 KB
package ‘digest’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘digest’
The downloaded binary packages are in
C:\Users\my_username\AppData\Local\Temp\Rtmpaunnzu\downloaded_packages
Does anyone know how to take it from here? Help is much appreciated.
P.S.: This (unanswered) question did not help me either.
The only "solution" I could find was to re-install RStudio.
I installed Julia v0.6.2 on Windows 10.
Every other package was installed without a problem, but Mongo.jl give me this error while building it.
Pkg.build("Mongo")
INFO: Building LibBSON
===============================[ ERROR: LibBSON ]===============================
LoadError: None of the selected providers can install dependency libbson.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\"user"\.julia\v0.6\LibBSON\deps\build.jl, in expression starting on line 27
================================================================================
INFO: Building Mongo
================================[ ERROR: Mongo ]================================
LoadError: None of the selected providers can install dependency libmongoc.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\"user"\.julia\v0.6\Mongo\deps\build.jl, in expression starting on line 26
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: LibBSON and Mongo had build errors.
- packages with build errors remain installed in C:\Users\ciko9\.julia\v0.6
- build the package(s) and all dependencies with Pkg.build("LibBSON", "Mongo")
- build a single package by running its deps/build.jl script
================================================================================
I already opened an issue on github, but I'd like to fix it asap. Any idea on how to solve this problem?
The solution is first to install manually the mongo c drivers.
Second, to copy the mongo-c-drivers folder to the mongo e libbson folder inside julia, then make a new file deps.jl for each package and write this:
# Macro to load a library
macro checked_lib(libname, path)
((VERSION >= v"0.4.0-dev+3844" ? Base.Libdl.dlopen_e : Base.dlopen_e)(path) == C_NULL) && error("Unable to load \n\n$libname ($path)\n\nPlease re-run Pkg.build(package), and restart Julia.")
quote const $(esc(libname)) = $path end
end
# Load dependencies
#checked_lib libbson "C:\\Users\\"userName"\\.julia\\v0.6\\LibBSON\\mongo-c-driver\\bin\\libbson-1.0.dll"
# Load-hooks
I have the lmerTest package installed, but it masks some of the lme4 functions and it loads automatically when I start a specific project.
I have tried deleteing the package but now I just get an error:
Loading required package: lmerTest Error in .requirePackage(package) :
unable to find required package ‘lmerTest’ In addition: Warning
message: In library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE, : there is no package called ‘lmerTest’
Every time I open Rstudio it attempts to load the lmerTest package. The error message repeats ten times.
I have checked the Rprofile file but it is not in there.
This seems to be the same problem:
https://support.rstudio.com/hc/en-us/community/posts/200798587-How-can-I-prevent-a-package-from-trying-to-load-at-startup-
The quick and dirty solution here is to delete (or 'hide') the .RData file from the folder.
In the terminal you could do the following, assuming the terminal is open in the working directory.
mv ./.RData ./.RData_old
This should get RStudio opening without that package loading but all your other objects will not be there either. If you still have the code used to create the objects, you'd just need to run through it again to create all the objects again.
I have installed EmguCV 2.4.2.1777. I have a 32-bit windows 7 so I installed it using the installer. Now I am trying to write a simple code to capture a webcam's video in a window in C#.
The problem is after during execution I am getting the following famous error:
A first chance exception of type 'System.DllNotFoundException' occurred in Emgu.CV.dll
A first chance exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll
An unhandled exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll
The file Emgu.CV.dll is present in the folder. I don't understand why its giving that error.
I tried all the checks which are suggested by fellow stackoverflow users and also many other references:
1) Installed MSVCR: MSVCRT 10.0 SP1 x86
2) copied the OpenCV dlls to the execution directory
3) I also have a 32-bit OS. So that also should'nt be an issue.
But when I checked for dependencies, I faced a problem:
I used DependecyWalker to open cvextern.dll and found the following dependencies missing:
NVCUDA.DLL
API-MS-WIN-CORE-COM-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL
DCOMP.DLL
IESHIMS.DLL
It also gave the following:
Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
Please help me out with the exception. Thanks in advance.
I copied all the dll files from C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\x86 to a folder called includes in my project and updated the "Copy To Output Directory" Option for these DLLs to "Copy Always" and it got rid of this issue.