KrishnaswamyLab / MAGIC

MAGIC (Markov Affinity-based Graph Imputation of Cells), is a method for imputing missing values restoring structure of large biological datasets.
GNU General Public License v2.0
341 stars 97 forks source link

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

Open Gabby4548 opened 2 years ago

Gabby4548 commented 2 years ago

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

karJac commented 2 years ago

image

Gabby4548 commented 2 years ago

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 commented 1 year ago

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

rrchai commented 1 year ago

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 commented 1 year ago

image

Why was Rmagic removed from CRAN?