unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll' - r-package

[![
Hi there!!
I am using R 4.0.5 on a windows 10 OS
I have installed rtools40-x86_64 and used the following command to put the location of the make it utilities as recommanded here
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
However after restarting R, it gave me the error on the picture below. or the following
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
I have uninstalled R, RStudio, Rtools, deleted all related files in C, Documents, and RStudio registry, and reinstalled there after. But the same error persist.
In a related post they made mentioned of missing binaries, and I used the command
install.packages("stats", type = "binary")
but it was negative.
I tried updating stats package, but once I call it it gives the same error.
> update.packages("stats")
> library(stats)
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
Every package which requires stats package gives the exact same error.
Does anyone have any idea on how to overcome this challenge?
Thanks in advance.
]3]3

I have installed a previous version of R (3.6.0) and a previous version of Rtools (.35) and that message disappeared. I have not tried any other R version.

I’ve seen many suggestions here and elsewhere suggesting to delete the .Renviron files. I deleted .Renviron locally with no success. However, I found an additional two .Renviron file in my OneDrive folder.
After deleting these files in OneDrive and reinstalling the most recent versions of R and rtools I was able to avoid the ‘stats.dll’ error.

Go to files. Delete the .Renviron file that you created and it will work.

Related

RcppArmadillo undefined symbol: dpotrf_ in Travis build

I have looked at many other posts related to this issue and have tried each solution. None have worked in my case, including copying over the makevars from Rcpp. Anyhow, when building on Travis I get the following error
undefined symbol: dpotrf_’
The interesting note is that the package installs fine on windows, macOS, and linux.
here is my repo R package
I can reproduce the failure on a very standard Debian testing system (which I use for the extensive reverse dependency checks on Rcpp and RcppArmadillo).
After installing packages bain and BFpack (I had the rest) I attempted to build the tar.gz from your pristine just-checked-out sources. And I get:
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘BGGM’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/tmp/Rinst106c6ed5251a/00LOCK-BGGM/00new/BGGM/libs/BGGM.so':
/tmp/Rinst106c6ed5251a/00LOCK-BGGM/00new/BGGM/libs/BGGM.so: undefined symbol: dpotrf_
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/tmp/Rinst106c6ed5251a/BGGM’
-----------------------------------
ERROR: package installation failed
This appears to be a moderately complex and large enough package so please pardon me for not diving in and debugging. I would suggest you simplify with smaller mock packages to see what may be wrong. (dpotrf is a fairly standard LAPACK routine so something somewhere calls it. Maybe you call it explicitly. Maybe you did a Fortran-to-C mapping wrong. Maybe you have something wrong in how you interface with RcppArmadillo. Hard to tell...)
Edit: You committed compiled code and a Windows library. "Don't do that." When Travis builds it also starts from a git checkout as I did. That may be the difference.
Edit 2: It wasn't, but your R code mixes .Call() with generated entry points (ie via RcppExports.cpp and RcppExports.R). I have seen that blow up for other people. That may be something to look into.
Disclaimer: I work with D_Williams, but I figured out the problem, and others may find it useful.
A functioning configure.ac was present, and a Makevars.in is present.
The problem is that the configure file was not yet generated. This is an autotools/autoconf setup. To resolve it, I ran autoconf in the package directory, which generated the configure file. That configure file is then executed when R builds the package. The configure file modifies the Makevars.in and creates Makevars. That Makevars file ultimately defines where to find libraries, includes, compilers, compiler options, etc.
If you do not generate the configure file from configure.ac using autoconf, then there is no configure file to be executed, and no Makevars to define the needed options at compile time. Therefore, the compiler is not fully configured, and it will fail.
TLDR: If you have an configure.ac, you must run autoconf on it, and commit that configure file to your repo. R needs to execute it to have a functioning Makevars.

Neo4J Desktop Initialization error: Error: end of central directory record signature not found

I got this error when the setup program is "Extracting Java 8". This solution (https://neo4j.com/developer/kb/extracting-java-error-during-neo4j-desktop-install/) doesn't help because %APPDATA%/Neo4j Desktop/Application/distributions/java/ was not created.
Thanks
Try deleting the file found under:
C:\Users\[USERNAME]\.Neo4jDesktop\distributions\java
It did the trick for me.
Had the same problem!
In the end found the java directory in the installation directory (I believe it was, I just searched for 'java' from here on). Next I found a file named zulu8.21.0.1-jdk8.0.131-win_x64.zip.
I removed this file, and got a different error message: it could not find the file zulu8.21.0.1-jdk8.0.131-win_x64.zip.tmp, so I put back the file I removed, and added .tmp to its name, and now it works!

Dart and package root

Im running some code using the dart VM from the command line.
the command is:
dart --checked -package-root=/dart/packages test_service.dart
however Im getting an error:
gf_service.dart': error: line 7 pos 1: library handler failed
import 'package:start/start.dart' as start;
Im confused since in the dir referenced by "-package-root" argument Im definitely seeing the "start/start.dart" file, so it exists. the -package-root folder is also correct.
is there something Im missing?
thank you
Normally you don't need the -package-root argument but the directory that contains the script file should have a symbolic link to the packages directory of your package. pub get should create these symlinks.
the solution to this issue is to use "--package-root" as the argument name, and not "-package-root" as googles own dart documentation says
https://www.dartlang.org/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html
(this should be fixed)
Im using dart vm 1.3.0

Unable to run grails 2.3.0 M2 through command line

I just downloaded the milestone edition grails 2.3.0 M2 .zip from the grails page and extracted in the c:\ directory after which it created the folder : C:\grails-2.3.0.M2.
Then I added C:\grails-2.3.0.M2\bin to the path system variable. After that when I try to run grails from command line (using C:\grails-2.3.0.M2\bin>grails), it gives me the following error:
Error opening zip file or JAR manifest missing : C:/grails-2.2.1/lib/org.springs
ource.springloaded/springloaded-core/jars/springloaded-core-1.1.3.jar
Error occurred during initialization of VM
agent library failed to init: instrument
It is interesting to note that the Jar belongs to the grails-2.2.1 installation folder and not the 2.3.0-m2.
I feel it worth mentioning that I already have grails 2.2.1 in my C drive (C:\grails-2.2.1) and before installing this new version, I was using this version. Also I have removed the old grails bin folder address (C:\grails-2.2.1\bin) from system variables. So anyone can guess what is causing the error?
Check you don't have a %GRAILS_HOME% variable set pointing to the old folder

dart including libraries with wrong casing in URI

So I've been working on this project in Dart for a few months without too many big issues, until a recent update from last week seems to have broken the way libraries are included in my application. I have an application package called 'BeerRun', with the standard lib/ and web/ directories. In 'web' I have the main beer_run.dart file, which is included and invoked in web/BeerRun.html. I've run pub install and pub update, but then when I run my dart application, I see the following error:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:3030/home/kyle/dart/BeerRun/web/packages/beerrun/src/input/keyboard_input_component.dart
Failed to load a file package:beerrun/src/input/keyboard_input_component.dart
There are about twenty instances of this message referencing different dart source files. The problem is that the path should be /home/kyle/dart/BeerRun/web/packages/BeerRun/src/input, but the browser is using all lower case path names to include this file. This was not a problem last week, until I upgraded my Dart editor; it is now version 22223. Is there something I'm missing?
Thanks in advance!
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:3030/home/axl/workspace/dart/Test/web/packages/test/text.dart
I had the same problem, solution was to include library through:
import '../lib/text.dart';
instead of
import 'package:Test/test.dart'
Version info: Dart Editor/SDK version 0.6.19_r26297

Resources