how to fix Error environment when using reticulate with command install_miniconda() - rstudio

I can't fix this error when I install miniconda in Windows 11 with reticulate.
Here is the message :
reticulate::install_miniconda()
Installing Miniconda -- please wait a moment ...
Downloading "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" ...
trying URL 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe'
Content type 'application/octet-stream' length 74687656 bytes (71.2 MB)
downloaded 71.2 MB
"C:/Users/charl/AppData/Local/r-miniconda/condabin/conda.bat" "create" "--yes" "--name" "r-reticulate" "python=3.8" "numpy" "--quiet" "-c" "conda-forge"
Error: Error creating conda environment 'r-reticulate' [exit code 1]
Thanks if you can help me

Related

Rscript execution error when installing RcppParallel on cluster

I tried to install the package RcppParallel on a cluster but encountered the error below.
Content type 'application/x-gzip' length 1967672 bytes (1.9 MB)
==================================================
downloaded 1.9 MB
* installing *source* package ‘RcppParallel’ ...
** package ‘RcppParallel’ successfully unpacked and MD5 sums checked
Rscript execution error: No such file or directory
ERROR: configuration failed for package ‘RcppParallel’
* removing ‘/moto/home/yz4247/rpackages/RcppParallel’
The downloaded source packages are in
‘/tmp/RtmpvW3tlA/downloaded_packages’
Warning message:
In install.packages("RcppParallel") :
installation of package ‘RcppParallel’ had non-zero exit status
Because it is on a cluster, I installed the package in my personal library. The GCC version is 11.2.0.
How should I get rid of the error? Thanks!

Problems with rcpp install - command not found

On a Mac with Sierra OS and the latest versions of xcode command line tools and r/rstudio, when trying to install rcpp I get the following error. Is this a path problem? Any help would be greatly appreciated!
> install.packages("Rcpp", type = "source")
trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_0.12.12.tar.gz'
Content type 'application/x-gzip' length 2421289 bytes (2.3 MB)
==================================================
downloaded 2.3 MB
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
sh: mv: command not found
** libs
sh: make: command not found
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rcpp’
sh: rm: command not found
Warning in install.packages :
installation of package ‘Rcpp’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/hn/zpnk2qsx19x1y974vym8wr7r0000gn/T/RtmptRz4Oe/downloaded_packages’

Cannot install package "predictionet" on Windows

I am trying to install predictionet but having troubles. Clearly there are no windows binaries available so I have been trying to install by building from source.
I have Rtools installed from here.
So far I have tried to use this command:
> install.packages("C:/Users/Blah/predictionet_1.10.0.tar.gz", repos = NULL, type="source")
But I am receiving this error message:
Installing package into ‘C:/Users/Blah/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'predictionet' ...
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-31~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="predictionet.dll" OBJECTS="foo_mrmr.o mrnet_adapted.o mrnet_adapted2.o mrnet_ensemble_standalone.o"' had status 309
ERROR: compilation failed for package 'predictionet'
* removing 'C:/Users/Blah/Documents/R/win-library/3.1/predictionet'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Blah\Documents\R\win-library\3.1" "C:/Users/Blah/Desktop/predictionet_1.10.0.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Blah/Desktop/predictionet_1.10.0.tar.gz’ had non-zero exit status
I am new to R so have no idea how to go about troubleshooting this, any help would be much obliged!
Note: I am using Rstudio
You may try :
source("http://bioconductor.org/biocLite.R")
biocLite("predictionet")

Error when installing XLConnect in RStudio

Thanks in advance.
I am trying to install XLConnect package. I am using RStudio. For your information rJava is installed.
Here is my command in R and the error message:
install.packages("XLConnect")
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/XLConnect_0.2-7.zip'
Content type 'application/zip' length 17997942 bytes (17.2 Mb)
opened URL
downloaded 16.7 Mb
Warning in install.packages : downloaded length 17473536 != reported length 17997942
Warning in install.packages : error 1 in extracting from zip file
Warning in install.packages : cannot open compressed file 'XLConnect/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
The warnings indicate that something is corrupting the package download. Quite often the reason is a corporate firewall. You might want to check with your IT whether this is the case.
Try installing using standard R and the standard R will tell you where is package zip file is saved. Then you can install using RStudio by installing package from local zip file.
I faced similar issue while downloading some package. Try re-installing the package cran using
install.packages("CRAN")
See if it works, if the issue of unmatched length persists uninstall RStudio and install it again.
That seemed to have worked for me.

Installing and loading "rJava"

I am encountering problems loading the "Deducer" package due a loading problem with "rJava". The installation of "rJava" seems to be done correctly, yet it fails when calling it to load.
Please, can anyone shed some light of wisdom? :)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java and make sure R and Java have matching architectures.")
error: object 'key' not found
Error: package/namespace load failed for ‘rJava’
On xubuntu 12.04 with javac 1.7.0_21 set as default via:
$ sudo update-alternatives
then
$ sudo R CMD javareconf
$ sudo R
> update.packages()

Resources