Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add print options #945

Open
pawelru opened this issue Nov 11, 2024 · 3 comments
Open

Feature request: add print options #945

pawelru opened this issue Nov 11, 2024 · 3 comments

Comments

@pawelru
Copy link

pawelru commented Nov 11, 2024

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
Copy link
Member

gaborcsardi commented Nov 11, 2024

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
Copy link
Author

pawelru commented Nov 11, 2024

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
Copy link
Member

I'll move it over there.

@gaborcsardi gaborcsardi transferred this issue from r-lib/sessioninfo Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants