Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: package or namespace load failed for 'Rmagic': #211

Open
Gabby4548 opened this issue Nov 1, 2022 · 5 comments
Open

Error: package or namespace load failed for 'Rmagic': #211

Gabby4548 opened this issue Nov 1, 2022 · 5 comments
Labels

Comments

@Gabby4548
Copy link

Gabby4548 commented Nov 1, 2022

hello,
I receive the following after trying to install Rmagic locally, and i can't find Rmagic on CRAN.

install.packages("D:/R_package/Rmagic_3.0.0.tar.gz",repos = NULL)

  • installing source package 'Rmagic' ...
    ** using staged installation
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    *** copying figures
    ** building package indices
    ** testing if installed package can be loaded from temporary location
  • "C:/Users/11832/AppData/Local/r-miniconda/condabin/conda.bat" "create" "--yes" "--prefix" "C:/Users/11832/AppData/Local/r-miniconda/envs/r-reticulate" "python=3.8" "numpy" "--quiet" "-c" "conda-forge"
    Collecting package metadata (current_repodata.json): ...working... failed

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

Error: package or namespace load failed for 'Rmagic':
.onLoad failed in loadNamespace() for 'Rmagic', details:
call: NULL
error: Error creating conda environment 'C:/Users/11832/AppData/Local/r-miniconda/envs/r-reticulate' [exit code 1]
Error: loading failed
Execution halted
ERROR: loading failed

  • removing 'D:/R 4.2.1/R-4.2.1/library/Rmagic'
  • restoring previous 'D:/R 4.2.1/R-4.2.1/library/Rmagic'
@karJac
Copy link

karJac commented Nov 3, 2022

image

@Gabby4548
Copy link
Author

I have download Rmagic_2.0.3.tar.gz on https://cran.r-project.org/src/contrib/Archive/Rmagic/, but R returned the same error as i share above.

@inofechm
Copy link

inofechm commented Nov 9, 2022

Try devtools::install_version("Rmagic", version = "2.0.3", repos = "http://cran.us.r-project.org/") this worked today on my end

@rrchai
Copy link

rrchai commented Jan 4, 2023

I could install Rmagic "2.0.3" use ^ snippet, but was not able to successfully run with old codes. Alternatively, I installed Rmagic via GitHub:

# install R dependencies required for Rmagic
R -e "install.packages(c('ggplot2', 'reticulate'), repos = 'http://cran.us.r-project.org')"
# install Rmagic from GitHub 
git clone https://github.com/KrishnaswamyLab/MAGIC.git
cd MAGIC/Rmagic && R CMD INSTALL .
# don't forget to install python-magic
pip install --user magic-impute

The version of Rmagic installed via this way is "Rmagic_2.0.3.999" and it works with the old codes. Hope it helps.

@TeodoraTockovska
Copy link

image

Why was Rmagic removed from CRAN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants