Skip to content

dependencies for building R

6 messages · Jim Lemon, Tom Callaway, José Abílio Matos +2 more

#
Hi,
I am once again trying to install the necessary dependencies for
building R on a new installation of Fedora 35. Is there any easier way
to do this than running ./configure many times and plugging the holes
one by one?

Jim
#
sudo dnf --enablerepo="*-source" builddep R

This will look at the Fedora R source package (from the Fedora source
repositories, normally disabled) and install all the BuildRequires it
specifies.

I can't remember off hand if the "builddep" plug-in automatically enables
the source repos these days, so that bit might be a no-op, but it's not
harmful.

~spot

P.S. I assume you have a solid reason to build your own, but if you would
like to see changes to the Fedora R package, my inbox is always open. :)
On Fri, Jan 7, 2022, 12:42 AM Jim Lemon <drjimlemon at gmail.com> wrote:

            

  
  
#
Hi Tom,
As I maintain a few packages on CRAN, The Rules say I should build
them with an up to the minute version of R. Whenever I have installed
R from a repo, it always seems to be a few versions behind. I'll let
you know how it goes. Thanks.

Jim
On Fri, Jan 7, 2022 at 5:00 PM Tom Callaway <spotrh at gmail.com> wrote:
#
On Friday, 7 January 2022 07.30.22 WET Jim Lemon wrote:
Please take what follows as genuine curiosity, because it is. :-)

Your remark seems strange because in general Tom rebuilds R in one or two 
weeks after it is released, at least for point releases.

The issue sometimes happens when a new release happens where in some cases the 
only viable option is to rebuild all the R packages. In that case we need to 
come with a way to automatically rebuild the packages (because order matters 
here).

Is this the problem that you are seeing?

Another worthwhile mentioning project is:
https://copr.fedorainfracloud.org/coprs/iucar/cran/

Best regards,
#
Hi,

FWIW, a good solution to check packages on the latest R version (in
particular the development version) is to upload them to Winbuilder:
https://win-builder.r-project.org/

(I even seem to remember that CRAN recommends this.)


Best


Le vendredi 07 janvier 2022 ? 12:16 +0000, Jos? Ab?lio Matos a ?crit?:

  
  
#
And nowadays there's also R-hub [1], rocker containers [2] for local
testing (which, combined with distrobox [3], is very convenient), and
of course r-actions on GitHub [4] for CI testing.

I?aki

[1] https://r-hub.github.io/rhub/
[2] https://github.com/rocker-org/rocker
[3] https://fedoramagazine.org/run-distrobox-on-fedora-linux/
[4] https://github.com/r-lib/actions/tree/v2-branch/examples
On Fri, 7 Jan 2022 at 16:02, Milan Bouchet-Valat <nalimilan at club.fr> wrote: