Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-17 Thread Simon Urbanek
This thread went way off the rails and was cross-posted so the solution is on R-SIG-Mac. It was simply wrong Fortran with wrong R - installing latest R and Fortran (from CRAN or https://mac.r-project.org/tools/) is the easiest way to solve the problem. Note that R binaries and tools go

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-17 Thread Ivan Krylov
В Wed, 17 May 2023 11:05:46 -0400 Jarrett Phillips пишет: > `which gfortran` returns > > /usr/local/bin/gfortran I think you ran the other gfortran. Is there a gfortran installation in /opt/gfortran? > libraries: >

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-17 Thread Jarrett Phillips
Hi Ivan, Yes, I can build a Fortran program successfully. cat >hello.f90 < wrote: > Can you build a Fortran program? I.e., does the following work? > > cat >hello.f90 < program hello > print *, 'Hello world' > end program > EOF > gfortran -o hello hello.f90 && ./hello > > Does `which gfortran`

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-17 Thread Ivan Krylov
Can you build a Fortran program? I.e., does the following work? cat >hello.f90

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
Actually, no, only locally… but so far all proposed solutions have failed. On Tue, May 16, 2023 at 7:11 PM Dirk Eddelbuettel wrote: > > Hi Jarrett > > On 16 May 2023 at 19:06, Jarrett Phillips wrote: > | I wonder if my problem is related to the question you posed about the > CRAN > | macOS

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Dirk Eddelbuettel
Hi Jarrett On 16 May 2023 at 19:06, Jarrett Phillips wrote: | I wonder if my problem is related to the question you posed about the CRAN | macOS builders being down. If it is, then according to @Simon Urbanek, this | should be resolved in a few hours. | | Can you confirm?  Oh, maybe -- were

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
Hi Dirk, I wonder if my problem is related to the question you posed about the CRAN macOS builders being down. If it is, then according to @Simon Urbanek, this should be resolved in a few hours. Can you confirm? Thanks. Cheers, Jarrett On Tue, May 16, 2023 at 1:11 PM Dirk Eddelbuettel

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Duncan Murdoch
I'm using R 4.3.0, newer than you, so that might affect things. Duncan On 16/05/2023 2:48 p.m., Jarrett Phillips wrote: Strange... the GitHub repo is up to date and that's what I'm trying to bundle up for a CRAN update. So, I'm thinking it's some kind of a system issue (I recently purchased a

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
Strange... the GitHub repo is up to date and that's what I'm trying to bundle up for a CRAN update. So, I'm thinking it's some kind of a system issue (I recently purchased a new MacBook Pro).. I'll investigate. Thanks! On Tue, May 16, 2023 at 2:09 PM Duncan Murdoch wrote: > I don't know what

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Duncan Murdoch
I don't know what the issue would be. I just tried remotes::install_github("jphill01/HACSim.R") and it worked fine, but I think that's not the same version that you are working with. Duncan Murdoch On 16/05/2023 2:01 p.m., Jarrett Phillips wrote: On Tue, May 16, 2023 at 2:00 PM

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
On Tue, May 16, 2023 at 2:00 PM Jarrett Phillips wrote: > Yes, in addition to doing what @DirkEddelbuettel suggests. I keep getting > the same error... > > On Tue, May 16, 2023 at 1:47 PM Duncan Murdoch > wrote: > >> On 16/05/2023 1:14 p.m., Jarrett Phillips wrote: >> > Installing from the URL

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Duncan Murdoch
On 16/05/2023 1:14 p.m., Jarrett Phillips wrote: Installing from the URL you provide, as well as doing R CMD build HACSim as suggested by @JeffNewmiller fails. When trying the latter solution, I get the same error as the one provided in my original post. Any thoughts? Did you try

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Gábor Csárdi
Seems like you are on R 4.2.x, so you could try this one: https://github.com/R-macos/gcc-darwin-arm64/releases Gabor On Tue, May 16, 2023 at 7:16 PM Jarrett Phillips wrote: > > Installing from the URL you provide, as well as doing R CMD build HACSim as > suggested by @JeffNewmiller fails. > >

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
Installing from the URL you provide, as well as doing R CMD build HACSim as suggested by @JeffNewmiller fails. When trying the latter solution, I get the same error as the one provided in my original post. Any thoughts? On Tue, May 16, 2023 at 12:52 PM Jarrett Phillips <

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Dirk Eddelbuettel
On 16 May 2023 at 18:32, Serguei Sokol wrote: | Try to add in /src/Makevars: | | PKG_LIBS=$(FLIBS) Good catch. For every RcppArmadillo package we recommend (and inject if you use the RcppArmadillo.package.skeleton() helper) (and omit the earlier comment lines) PKG_CXXFLAGS =

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
Hi Duncan, I actually installed gfortran from https://github.com/fxcoudert/gfortran-for-macOS/releases but I can instead install from the URL you provide. Hopefully this fixes the problem. I will respond here if there are still issues. Thanks. Cheers, Jarrett On Tue, May 16, 2023 at

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Duncan Murdoch
On 16/05/2023 12:07 p.m., Jarrett Phillips wrote: Hi All, I'm trying to generate a `tar.gz` file on a Mac for R package submission to CRAN but am having issues. I'm using `devtools`, specifically `build()` and `install()`. My package relies on compiled code via `Rcpp/RcppArmadillo`.

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Serguei Sokol
Le 16/05/2023 à 18:07, Jarrett Phillips a écrit : Hi All, I'm trying to generate a `tar.gz` file on a Mac for R package submission to CRAN but am having issues. I'm using `devtools`, specifically `build()` and `install()`. My package relies on compiled code via `Rcpp/RcppArmadillo`.

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Ivan Krylov
В Tue, 16 May 2023 12:07:05 -0400 Jarrett Phillips пишет: >ld: warning: directory not found for option > '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1' >ld: warning: directory not found for option > '-L/opt/R/arm64/gfortran/lib' >ld: library not found

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jeff Newmiller
Your mistake is confusing a tool designed for _iterative development_ for a tool designed for _delivery_. Use R CMD build the way WRE says you should. On May 16, 2023 9:07:05 AM PDT, Jarrett Phillips wrote: >Hi All, > >I'm trying to generate a `tar.gz` file on a Mac for R package submission

[R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Jarrett Phillips
Hi All, I'm trying to generate a `tar.gz` file on a Mac for R package submission to CRAN but am having issues. I'm using `devtools`, specifically `build()` and `install()`. My package relies on compiled code via `Rcpp/RcppArmadillo`. build("HACSim_OO") ── R CMD build