first package development: installing through github takes time and doesn't work with R < 4.1.1


I am working on my first package, which is a Shiny application to study spring discharge time series. So far I succeeded to sync it on a Github repo and installing it with devtools::install_github().

But, I am concerned about two things for the future users:

  • The installation takes a lot of time (a lot of lines beginning with C:/rtools40/mingw32/bin/"g++ -std=gnu++11 )
  • I am unable to install the package with R version prior to 4.1.1 and Rtools prior to rtools40

I honestly have no idea where to improve these aspects. It does not seem to happen with other packages that I install from Github.

Any help would be greatly appreciated. Thanks.

I found a solution regarding R version, it was because I didn't specified a minimum R version in the DESCRIPTION file.

see r package - R CMD build . fails: "argument is of length zero" - Stack Overflow.

About the installation that takes a lot of time, it is because I installed some package from source instead of binary.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.