Re: [R-SIG-Mac] New {macrtools} package to help setup compiled code environments on Intel and ARM-based macs

2023-03-24 Thread Balamuta, James Joseph
.) These binaries are mainly if you want to compiled R from source. Best, JJB [1]: https://mac.r-project.org/bin/ [2]: https://github.com/R-macos/recipes From: Adrian Dușa Date: Friday, March 24, 2023 at 1:23 AM To: Balamuta, James Joseph Cc: r-sig-mac@r-project.org Subject: Re: [R-SIG-Mac] New {macrtools

[R-SIG-Mac] New {macrtools} package to help setup compiled code environments on Intel and ARM-based macs

2023-03-24 Thread Balamuta, James Joseph
All, Hope all is well. About a month or so back, we revisited the **unofficial** macOS R compilation toolchain setup wizard with a focus on making it more maintainable without an Apple developer subscription. The result is the new {macrtools} R package. You can learn more about it here:

Re: [R-SIG-Mac] sf installation problem under Mac OS 11 - Big Sur

2020-11-19 Thread Balamuta, James Joseph
Cheers, Simon > On Nov 20, 2020, at 3:34 AM, Balamuta, James Joseph wrote: > > Prof. Ripley, > > Hope all is well. > > The issue was raised by Jeroen on GitHub on Oct 30th regarding libpq.5.dylib being missing: > > https:/

Re: [R-SIG-Mac] sf installation problem under Mac OS 11 - Big Sur

2020-11-19 Thread Balamuta, James Joseph
Prof. Ripley, Hope all is well. The issue was raised by Jeroen on GitHub on Oct 30th regarding libpq.5.dylib being missing: https://github.com/R-macos/recipes/issues/14 To date, Simon hasn't responded to it. Not sure re-building with the recipe as-is will yield the correct outcome as the

Re: [R-SIG-Mac] Error compiling C++ code in R 4.0 on Mac OS X Catalina

2020-08-10 Thread Balamuta, James Joseph
Isaac, To build off of what Bob mentioned, you may wish to check that Rcpp and RcppArmadillo are indeed installed. From SO, we see: /Library/Frameworks/R.framework/Packages/RcppArmadillo/include/RcppArmadilloForward.h:26:10: fatal error: 'RcppCommon.h' file not found #include

Re: [R-SIG-Mac] "cannot run mixed C/Fortran code"

2020-08-04 Thread Balamuta, James Joseph
Yes, the old gfortran ~4.8.6 binary can cause this issue. Unfortunately, there isn't an uninstaller. I wrote up some guidelines for removing it here: https://thecoatlessprofessor.com/programming/cpp/removing-the-old-r-custom-gfortran-4.8.2-binary/ The gist is: # Download installer into working

Re: [R-SIG-Mac] R4.0.0 and Makevars

2020-05-26 Thread Balamuta, James Joseph
Roy, For R 4.0.0, there is no need to keep Makevars or Renviron's PATH configuration as everything should just "work." The R 4.0.0 binary will look at the default installation location for OS-specific gfortran8.2 or gfortran6.3 version. Having said this, there is also the OpenMP opt-in

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-05-01 Thread Balamuta, James Joseph
Simon, Thank you for the official instructions on using OpenMP with R 4.0.0! Also, thanks for making the source behind mac.r-project.org available on GitHub! https://github.com/s-u/R-mac-dev Would you consider creating an organization to house all repositories related to R for macOS in a

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread Balamuta, James Joseph
Kevin, Simon discussed why they opted to avoid this back in June '19 when Jon Clayden brought up a similar success. https://stat.ethz.ch/pipermail/r-sig-mac/2019-June/012998.html The sentiment was using the system compiler is in manner is unsupported and works only on some systems. I'm not

Re: [R-SIG-Mac] Please test R 4.0.0 pre-releases!

2020-04-01 Thread Balamuta, James Joseph
-project.org/libs-4/ Best, JJB On 4/1/20, 5:01 PM, "R-SIG-Mac on behalf of Balamuta, James Joseph" wrote: Simon, Thank you for the quick response! > 1. correct, there was too much trouble in this. But please feel free to start a new thread about this here if yo

Re: [R-SIG-Mac] Please test R 4.0.0 pre-releases!

2020-04-01 Thread Balamuta, James Joseph
http://mac.r-project.org/libs-4/INDEX and R from http://mac.r-project.org/high-sierra/R-4.0-branch/R-4.0-branch.pkg Thanks, Simon > On 2/04/2020, at 2:30 AM, Balamuta, James Joseph wrote: > > Simon, > > Thanks for the overvie

Re: [R-SIG-Mac] Please test R 4.0.0 pre-releases!

2020-04-01 Thread Balamuta, James Joseph
Simon, Thanks for the overview! A few quick questions: 1. Compiler-wise, the external clang compiler requirement was removed and, so, there is no guarantee of OpenMP on macOS again? 2. Why was 10.13 chosen as the oldest system instead of 10.14 given the new push for increased security by

Re: [R-SIG-Mac] Install r-devel with homebrew?

2020-03-23 Thread Balamuta, James Joseph
eveloper cannot be verified." Any suggestions? Rainer On 23 Mar 2020, at 15:09, Balamuta, James Joseph mailto:balam...@illinois.edu>> wrote: Rainer, Download the R-devel build from http://mac.r-project.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__mac.r-2Dproject.org=DwM

Re: [R-SIG-Mac] Install r-devel with homebrew?

2020-03-23 Thread Balamuta, James Joseph
Rainer, Download the R-devel build from http://mac.r-project.org The build is available under "Universal nightly builds for Mac OS X (10.6+ and 10.9+)" table. R-devel-el-capitan-sa-x86_64.tar.gz (67Mb) http://mac.r-project.org/el-capitan/R-devel/R-devel-el-capitan-sa-x86_64.tar.gz

Re: [R-SIG-Mac] Robust compiler toolchain for R-devel

2020-02-18 Thread Balamuta, James Joseph
All, First, macos-rtools isn't an officially sanctioned R project installer. I created it in the Summer of 2017 to quickly get students and collaborators setup with minimal effort under a configuration that mirrored CRAN. This was primarily due to the lack of official installer packages and

Re: [R-SIG-Mac] build R for macOS with binary compatibility with CRAN

2020-01-15 Thread Balamuta, James Joseph
Simon, This is great! Thank you for sharing. I think I noticed a bug with the fixpathR script: clang4 complier is hard coded. https://svn.r-project.org/R-dev-web/trunk/QA/Simon/R-build/fixpathR Instances: find . -name \*.dylib -or -name \*.so| xargs -n 1 install_name_tool -change

Re: [R-SIG-Mac] Error when fitting a brms model, maybe associated with Catalina MacOS

2019-12-16 Thread Balamuta, James Joseph
t;), each = 30) >>>> symptom_post <- c(rnorm(30, mean = 1, sd = 2), rnorm(30, mean = 0, sd = >>> 1)) >>>> dat1 <- data.frame(group, symptom_post) >>>> >>>> fit1 <- brm(bf(symptom_post ~ group, sigma ~ group),

Re: [R-SIG-Mac] Error when fitting a brms model, maybe associated with Catalina MacOS

2019-12-16 Thread Balamuta, James Joseph
0, sd = > > 1)) > > > dat1 <- data.frame(group, symptom_post) > > > > > > fit1 <- brm(bf(symptom_post ~ group, sigma ~ group), > > >data = dat1, family = gaussian()) > > > > > > Chain 4: Iteration

Re: [R-SIG-Mac] Error when fitting a brms model, maybe associated with Catalina MacOS

2019-12-12 Thread Balamuta, James Joseph
Greetings and Salutations All, Great to see the `r-macos-rtools` installer popping up! As the author of it, please note that it's an unofficial (non-CRAN backed) installer that seeks to automatically establish the CRAN toolchain in a friendly GUI installer. We developed it to help out students

Re: [R-SIG-Mac] update.packages() cannot install from source

2019-10-29 Thread Balamuta, James Joseph
Greetings and Salutations, Note that Xcode Command Line Tools is not the same as Xcode IDE. In fact, only Xcode CLI Tools are required, which are light-weight compared to the IDE. Regarding your error, this is symptomatic of an Xcode update tied to an OS point-release. Note in the session

Re: [R-SIG-Mac] Catalina and gfortran (also: My silliness)

2019-10-10 Thread Balamuta, James Joseph
Greetings and Salutations All, From the tools page: "gfortran-6.1.pkg (OS X 10.11+, signed, 64-bit)" https://cloud.r-project.org/bin/macosx/tools/ How is it 32-bit? The only 32-bit installer is the `gfortran-4.2.3.dmg`, which hasn't been used since R 3.4.z Sincerely, JJB On 10/10/19,

Re: [R-SIG-Mac] Catalina and gfortran

2019-10-10 Thread Balamuta, James Joseph
Erich, Try to install gfortran with this installer: https://cran.r-project.org/bin/macosx/tools/gfortran-6.1.pkg Sincerely, JJB On 10/10/19, 10:28 AM, "R-SIG-Mac on behalf of Erich Subscriptions" wrote: I am trying to produce a n R environment on clean new Catalina installation

Re: [R-SIG-Mac] code-signing for builds of R from the developer page?

2019-09-21 Thread Balamuta, James Joseph
Greetings and Salutations All, I think `launchd` jobs would properly sign the installer. `launchd` is Apple's re-envisioning of `cron`. So, would it be possible to port over the cron job to `launchd`? Sincerely, JJB On 9/20/19, 11:06 PM, "R-SIG-Mac on behalf of Simon Urbanek" wrote:

Re: [R-SIG-Mac] Apple Clang does support OpenMP (if libomp is available)

2019-06-06 Thread Balamuta, James Joseph
Greetings and Salutations Jon, > Lack of OpenMP support in Apple’s build of Clang is cited as one reason for > not using it in CRAN builds From R 3.4.x forward, OpenMP has been enabled in CRAN builds as the toolchain is using a custom compiler. You can see this with regard to the work done to

Re: [R-SIG-Mac] clang: error: unsupported option '-fopenmp'

2019-05-07 Thread Balamuta, James Joseph
/local/bin/gfortran-4.8". ??? Thanks again. On 2019-05-07 08:56, Balamuta, James Joseph wrote: > Greetings and Salutations All, > > For R 3.6.x, you want: > > https://cran.r-project.org/bin/macosx/tools/clang-7.0.0.pkg >

Re: [R-SIG-Mac] clang: error: unsupported option '-fopenmp'

2019-05-07 Thread Balamuta, James Joseph
Greetings and Salutations All, For R 3.6.x, you want: https://cran.r-project.org/bin/macosx/tools/clang-7.0.0.pkg To let R know about the complier, we need to modify the ~/.Renviron. You may need to create the file by running in Terminal (Applications -> Utilities): touch ~/.Renviron Then,

Re: [R-SIG-Mac] 'math.h' file not found

2018-12-18 Thread Balamuta, James Joseph
Roger, Due to macOS Mojave shift where system headers are located, you'll need to run: sudo installer -pkg \ /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg \ -target / This installs the headers back to the default location of previous macOS builds, e.g.

Re: [R-SIG-Mac] Generating R .pkg file for Mac Distribution

2018-05-24 Thread Balamuta, James Joseph
t you may or may not like. Be careful trusting installers that are not signed by CRAN members. We only supply the binary and any post-install actions only affect the installed binary not other system functions nor user directories. Cheers, Simon > On May 17,

Re: [R-SIG-Mac] Generating R .pkg file for Mac Distribution

2018-05-24 Thread Balamuta, James Joseph
to the new install location. Lastly, you may wish to just maintain an R package install script, c.f. https://github.com/coatless/toad/blob/master/install-r-packages.R Sincerely, JJB From: Nigel Delaney <nigelfdela...@gmail.com> Date: Thursday, May 24, 2018 at 2:14 AM To: "Balamuta, J

Re: [R-SIG-Mac] Generating R .pkg file for Mac Distribution

2018-05-17 Thread Balamuta, James Joseph
Greetings and Salutations Nigel, I've "augmented" the base R install via an unofficial, e.g. not sanctioned by CRAN, Rtools build. This can be found here: https://github.com/coatless/r-macos-rtools Presently, the latest release only supports the R 3.4.* line:

Re: [R-SIG-Mac] R 3.4.3 binaries

2018-01-30 Thread Balamuta, James Joseph
, JJB On 12/18/17, 12:02 AM, "R-SIG-Mac on behalf of Balamuta, James Joseph" <r-sig-mac-boun...@r-project.org on behalf of balam...@illinois.edu> wrote: Greetings and Salutations Simon, Thanks for the response. > If you want to help, a good star

Re: [R-SIG-Mac] R 3.4.3 binaries

2017-12-17 Thread Balamuta, James Joseph
ibuting constructively. Cheers, Simon > On 7/12/2017, at 6:21 AM, Balamuta, James Joseph <balam...@illinois.edu> wrote: > > Greetings and Salutations All, > > First off, I want to say I really appreciate all the work that goes i

Re: [R-SIG-Mac] Install rJava produce an error

2017-10-15 Thread Balamuta, James Joseph
Greetings and Salutations Marc, The “-fopenmp” issue indicates you are using Xcode’s clang compiler that does _not_ support OpenMP as Apple has yet to enable it in their fork of the llvm project. As of R 3.4.0, the macOS binary of _R_ uses a custom toolchain that explicitly supports OpenMP.