r-lib / actions

GitHub Actions for the R community
Creative Commons Zero v1.0 Universal
968 stars 216 forks source link

Feature request: add print options #945

Open pawelru opened 2 days ago

pawelru commented 2 days ago

As a user of setup-r-dependencies (that makes use of sessioninfo package) In order to better analyse the logs I would ask to include print of the options used - in particular: repos but I guess there are few more that are relevant in the process of installing dependencies (e.g. pkgType) so it would probably make sense to print them all.

gaborcsardi commented 2 days ago

I think this would be better fixed elsewhere.

pak adds some repos automatically, so I guess it would make sense to print the repo status in setup-r-dependencies, e.g.

❯ pak::repo_status()
# A data frame: 12 × 10
   name          url                                                    type  bioc_version platform               path                                 r_version ok     ping error
   <chr>         <chr>                                                  <chr> <chr>        <chr>                  <chr>                                <chr>     <lgl> <dbl> <list>
 1 CRAN          https://cloud.r-project.org                            cran  NA           source                 src/contrib                          4.4       TRUE  0.930 <NULL>
 2 CRAN          https://cloud.r-project.org                            cran  NA           aarch64-apple-darwin20 bin/macosx/big-sur-arm64/contrib/4.4 4.4       TRUE  1.02  <NULL>
 3 BioCsoft      https://bioconductor.org/packages/3.20/bioc            bioc  3.20         source                 src/contrib                          4.4       TRUE  0.178 <NULL>
 4 BioCsoft      https://bioconductor.org/packages/3.20/bioc            bioc  3.20         aarch64-apple-darwin20 bin/macosx/big-sur-arm64/contrib/4.4 4.4       TRUE  0.187 <NULL>
 5 BioCann       https://bioconductor.org/packages/3.20/data/annotation bioc  3.20         source                 src/contrib                          4.4       TRUE  0.671 <NULL>
 6 BioCann       https://bioconductor.org/packages/3.20/data/annotation bioc  3.20         aarch64-apple-darwin20 bin/macosx/big-sur-arm64/contrib/4.4 4.4       TRUE  0.815 <NULL>
 7 BioCexp       https://bioconductor.org/packages/3.20/data/experiment bioc  3.20         source                 src/contrib                          4.4       TRUE  0.322 <NULL>
 8 BioCexp       https://bioconductor.org/packages/3.20/data/experiment bioc  3.20         aarch64-apple-darwin20 bin/macosx/big-sur-arm64/contrib/4.4 4.4       TRUE  0.654 <NULL>
 9 BioCworkflows https://bioconductor.org/packages/3.20/workflows       bioc  3.20         source                 src/contrib                          4.4       TRUE  0.410 <NULL>
10 BioCworkflows https://bioconductor.org/packages/3.20/workflows       bioc  3.20         aarch64-apple-darwin20 bin/macosx/big-sur-arm64/contrib/4.4 4.4       TRUE  0.749 <NULL>
11 BioCbooks     https://bioconductor.org/packages/3.20/books           bioc  3.20         source                 src/contrib                          4.4       TRUE  0.419 <NULL>
12 BioCbooks     https://bioconductor.org/packages/3.20/books           bioc  3.20         aarch64-apple-darwin20 bin/macosx/big-sur-arm64/contrib/4.4 4.4       TRUE  0.569 <NULL>

As for all the options, try this action: https://github.com/r-hub/actions/tree/main/platform-info Something like this will be part of the next generation of r-lib/actions as well.

pawelru commented 2 days ago

Thanks for the reply and for the hint. I will give a try. Shall I close it here and open a new one in r-lib/actions then?

gaborcsardi commented 2 days ago

I'll move it over there.