-
Notifications
You must be signed in to change notification settings - Fork 98
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 installing Harmony on R version 4.0.0 (2020-04-24) #90
Comments
Just to echo @ankushs0128 's observations, I'm seeing the same problem from upgrading to R v4. |
I just tried installing presto and harmony on R 4.0.2 on Linux, and it worked just fine:
See the full log here for presto: immunogenomics/presto#8 (comment)
Here's the log for harmony:
|
slowkow, |
I'm having the same issue coming through (and seen in #87 ), after upgrading to R 4.0.2. This error also still persists in presto. Full log below, and I tried checking the temp file that is referred to but can't seem to capture it (destroyed). I've looked through Source and can't see any red flags, especially if it's passing Travis tests. I ran an Ubuntu docker container and installed a fresh version of R, devtools, and Harmony which worked as an alternative, but far from ideal. Happy to dig into any suggestions, but can't seem to capture the point at which the installation is breaking.
Session Info
|
Please let me know whether you are able to install these other packages on your macOS system. I still don't have a clear ideas about what is going wrong, but comparing and contrasting different packages that work or do not work might help to narrow down the possibilities. I am starting to suspect that it is something particular about your system (e.g. the C++ compiler).
|
@slowkow - Thanks for the questions. Hope this helps narrow the issues:
So I'm a bit stumped as to what's causing this. |
I did updated R 4.0,0 to R 4.0.2 and
However Any pointers to Install rectify the error !! |
@clarsenEmory Please consider sharing more information. By sharing the complete output for the
Please also share:
Here is the information I have gleaned from messages so far: |
Here is the session info
|
The harmony package installs without issues on: My best guesses:
I noticed that GitHub Actions uses a different version of macOS (10.15), so I may try to set that up and see what the result will be. |
I used GitHub Actions and found that harmony installs without issues on:
Here, you can view the results for five different combinations of OS and R versions: For those of you experiencing issues, I wonder if you have used Homebrew to install Please consider sharing the following:
|
That did the trick - seems that my system had gfortran installed via brew. Removing the brew version, and installing the gfortran binaries from r-project tools, and adding that to the path did the trick. Thanks for the assistance! |
Hooray! Thank you for letting us know, Andrew! Sorry for the long and tedious journey. I hope that this solves the issue for everyone. By the way, I'm not confident that you need to download and install the gfortran binaries if you are using CRAN R 4.0.0 builds and higher. I don't recall how I got gfortran on my Mac, but I know that I had to install Xcode with This is what I see on the R-Project website: https://cran.r-project.org/bin/macosx/tools/
These instructions might also be helpful: https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/ |
No luck !! It´s still showing the same error. However, I tried on another macOS, it installed without a problem. But couldn´t figure out the problem. |
@ankushs0128 Thank you for reporting that the installation works on another macOS system. That helps us to confirm that the issue is not with harmony code, but instead with system settings. I inspected the commands run by GitHub Actions and this is what I found for installing R on macOS:
For additional assistance, you might consider creating a post on RStudio Community. The folks at RStudio have a lot of expertise in setting up R. Please consider sharing with them all of your relevant system details (entire command, entire output, Without additional information from you, this is the best I can do. Good luck! |
Thanks, @slowkow !! I reinstalled Xcode, R 4.0.2 and then gfortran as suggested by @slowkow
Note , There are no ~/.R/Makevars files in R 4.0.2 (at least) in my system !
|
Hi all, I'm also trying to use Harmony and I´m also facing same problems, I tried all the above listed steps for installation, but to no success. Any suggestion to circumvent the problem.
|
@MRogne007 Did you follow the instructions here? https://thecoatlessprofessor.com/programming/r/uninstalling-the-r-development-toolchain-on-macos/ |
yes i did |
@MRogne007 Please consider sharing more information:
How did you install R? (brew, download .pkg file from r-project.org, etc.) |
@MRogne007 What happens if you try this? mv ~/.miniconda3{,.bak} # temporarily move the miniconda folder to disable it
R -e 'devtools::install_github("immunogenomics/harmony") |
I have been trying around with all different approaches mentioned above, including re-installing the toolchain and gfortran, which all didn't work. However, what worked now on my macOS Mojave 10.14.6 R version 4.0.2 is:
This solved the problem. I have already run Harmony on some data and it seems to work well. Not sure of course whether any other features may be affected by this approach, so happy about your feedback there. Thanks! |
Hi @ilonliu, thanks for the report. The data files are not essential. If they are causing installation issues, we should certainly modify them or simply remove them. I know this might be a stretch, but would it be possible for you to share the commands and error messages that you saw? And then the same commands and messages after deleting the data files? This would help me to understand the issue. |
Original error with
After cloning the repository and deleting the data files, running
|
@ilonliu Thank you so much! Here's my guess about what might be happening. I guess that the data files might be dependent on some versions of multiple R packages, and those packages are not specified in DESCRIPTION or elsewhere. Then, users who lack those packages (or have different versions) cannot load the data files. That's my best guess. I would have to try to inspect the files to learn more. I may be wrong. @ilyakorsunsky I think we need to double-check what is going on with those data files — it seems they may be causing installation issues for some users. I think the safest thing to do is to delete them. Then, the next safest option would be to delete them and re-create new files scratch, but this time ensure that the objects saved in the It's concerning that the Travis and Appveyor installations seem to work, and yet some users still have installation issues. This issue serves as a reminder that Travis and Appveyor tests are necessary, but not sufficient. |
deleting data folder works for me. Thank you! |
i finished it:
by:
library(devtools)
install_local('yourpath/harmony-master.zip') good luck to you !!! |
I feel I ought to report. Mine is R 3.6.1.
Thanks for the great tool. |
MacOS: BigSur version 11.0.1 I was having similar issues to users above. Just thought I would add this in case it would work for anyone else. |
Thanks Kelsi-kw , this is the only one that worked for me! on MacOS: Catalina version 10.15.7, platform x86_64-apple-darwin17.0, version.string R version 4.0.4 (2021-02-15) |
Installing harmony in R (4.0.0 on MacOS) directly from Github is giving an error message :-
Any pointer to rectify the error
The text was updated successfully, but these errors were encountered: