-
Notifications
You must be signed in to change notification settings - Fork 301
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
Hi, am not able to install "sf" in R; using macOS high sierra #680
Comments
Hi, tried following the steps on link And getting the following error. Thank you.
|
|
If you don't understand your own system, install OSX binary CRAN packages. classInt and units are available. And sf is available for binary install from CRAN too. If your OSX is too new, move to a version that works, or to a more capable OS (even Windows is less of a problem for open source software). |
Hi, I just downloaded and installed Xcode and yet I am getting the following error. Please assist. Thanks.
|
INSTALL BINARY!!! |
Your problem has to do with not being able to install R source package on your platform. Please seek help somewhere else, and come back here when your problem has to do with the sf package. |
Hi @edzer , yes I will dig somewhere else :), I wrote here as I did not face this issue with "sp" and few other packages. Thanks! Hi @rsbivand thanks for the suggestion. I tried binary, and both "classint" and "units" did not work. Probably got to do with R 3.4.2 version.
|
Track https://cran.r-project.org/bin/macosx/, and https://stat.ethz.ch/pipermail/r-sig-mac/ for the latest difficulties. This could also be a mirror issue, as https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4/classInt_0.1-24.tgz is present. |
update: this link has a solution that worked for me. I was able to install "udunits2", and "units". However, they do not mention "ClassInt" and it is throwing an error. I will ask them, probably. Thank you.
|
Hi, I noticed that I have x86_64-apple-darwin15.5.0-gfortran but not x86_64-apple-darwin13.4.0-gfortran which is needed to install "ClassInt" package in R 3.4.2 on mac os 10.13.2. Any suggestions? |
Please do listen to what you are asked to do. Install binary only, or explain why you are still trying to install from source on a broken system. If you really wish to install from source, do follow the advice on the pages given, such as https://cran.r-project.org/bin/macosx/tools. This explains that Fortran from Apple is terminally broken, and gives remedies. |
From this thread: https://stat.ethz.ch/pipermail/r-sig-mac/2018-March/012684.html you'll see that many others are having difficulties at the moment. Ensure that you are really installing binary, and visit the package pages on CRAN to ensure that all the packages the target package uses are installed in updated form. A lot of the difficulties seem to have come from Apple's bipolar issue (they are dreadfully lax on security, so obfuscate by enforcing costly certification on the installation of third-party software as if wasn't to blame itself - recall the no-password root login scandal). |
@jeroen that was an excellent suggestion. I do have R for mac, but because I use Anaconda for spyder (python), and they have R studio too, thus I was using it. I was able to download sf (binary), and "ClassInt" (source) using R for mac. Thank you very much. @rsbivand I was able to download sf (binary), and "ClassInt" (source) using R for mac. Thank you very much. In this process, I learnt many new things. |
This person is the most unhelpful, unknowledgeable... I'll leave out colorful language... person I've had the misfortunate of coming across on here. I know this is an old thread and I'm sure you've moved on but for anyone else, this worked for me: (After installing units) To install classInt for mac: |
@v-ca please do respect the code of conduct of this repo. |
@edzer nothing I said violated a code of conduct, and you may want to reprimand rsbivand, unless you're ok with how that ...gentleman... spoke to a user just trying to get help with something they obviously were having trouble with. |
@v-ca I followed your suggestions and it totally worked out!..Thank you very much for your help!.. |
I am just learning about spatial visualization in R and attempted to load the sf package on my Mac as part of my studies. I encountered the same error that @sagar-m did, and was encouraged upon finding this thread that I found a solution...until I read the comments from @rsbivand and @edzer. Guys, we are not all as awesome at this stuff as you seem to think you are. I hope the tone of your comments to @sagar-m were the result of not speaking English as a primary language. I hope that you don't take that tone with everyone who comes here asking for help. You're driving people away if you do. fwiw - I solved my issue by following @rsbivand 's blunt instruction to "INSTALL BINARY!!!", although it was completely by accident. When attempting to install sf in my instance of R Studio, I received the following prompt: "Do you want to install from sources the package which needs compilation? (Yes/No/Cancel)" After reading the harsh and critical comments on this thread, I was able to get context on this somewhat cryptic message. I understood that installing this as a compiled package on my Mac was part of the issue, so I chose "No". What the above prompt fails to communicate is that selecting "No" will "INSTALL BINARY!!!" The first 10 times I went past that prompt, I thought that selecting "No" would abort installation, so I chose "Yes" and got the error @sagar-m referenced. Bottom line: If you are attempting to install sf in R Studio on a Mac, choose "No" when you receive the above prompt. Also, don't be discouraged by grumpy community members who belittle you for not being as cool as they are. Press forward, learn, and share your experiences. @sagar-m , good on you for demonstrating the poise that you did, in spite of the comments you received in response to your request for help. You inspire me to show more restraint in the face of mean people. |
@bradpr After unsuccessful attempts to explain why source installations of R packages with compiled C/C++/Fortran code are very much more demanding when external software is involved, I felt that shouting (all caps) was less harmful than leaving the questioner without help. Much of the trouble has come about as the default for installation type on Windows and most macOS versions of R is now We tried to explore having a by-package specification to insert So on balance the only sensible advice to macOS users with installation problems for packages like sf is to install binary, unless the users feel very confident about their software and system management competences. Of course, one should encourage people to enhance competences, but this implies that they really want to know, and have the time to learn stuff they may never need to use ever again. One cannot know whether a questioner is interested in making that major commitment, so the "kindest" fallback for macOS is |
I know that I'm very late to the conversation. I just had the same issue, Then in R: No need to install from binary and all that. |
For me, you were just in time. Thank you. On Linux Mint 20 (Ubuntu 20 derivative), I also needed another library to install. With libudunits2-dev and libgdal-dev I was able to install.
|
The error is as below. Thank you so much.
``
The text was updated successfully, but these errors were encountered: