Sage-Bionetworks / synapserutils

R package for Synapse utilities
https://sage-bionetworks.github.io/synapserutils/
Apache License 2.0
7 stars 4 forks source link

Straightforward installation of `synapserutils` and `Synapse` packages #26

Open drhmoosavi opened 1 month ago

drhmoosavi commented 1 month ago

I could not install the packages using given instructions in Github, ran.synapse.org or docs.synapse.org.

After an hour of work I managed to solve the issue. It is very important to clarify this for everyone on how to do this the easiest way. Here is how:

  1. Install the latest version of R tools; run Sys.which("make" ; pkgbuild::has_build_tools(debug = TRUE) to make sure the installation is correct. 2 Remove Reticulate package if you have it installed in your R. Install correct version of the package using install.packages("https://cran.r-project.org/src/contrib/Archive/reticulate/reticulate_1.28.tar.gz", repos = NULL, lib = "C:/Program Files/R/R-4.4.1/library" ).
  2. You need Python installed as explained, but most importantly you need a python library called synapseclient (run pip install --upgrade synapseclient in your python terminal to install)
  3. Run install.packages("synapseclient", repos=c("http://ran.synapse.org/", "https://cloud.r-project.org")). Mind "https://cloud.r-project.org"). Running any other install.package instances failed for me!
thomasyu888 commented 1 month ago

Hi @drhmoosavi ,

Currently - R 4.4 version is not supported. We are working hard on supporting this in the next release by the end of next week.

drhmoosavi commented 1 month ago

Thanks @thomasyu888 for your clarification.

at the moment, I get the following:

library(synapser)
Error: package or namespace load failed for ‘synapser’ in runHook(".onLoad", env, package.lib, package):
 lazy-load database 'C:/Program Files/R/R-4.4.1/library/synapser/R/synapser.rdb' is corrupt