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

When score and assessment is converted to data.frames <pillar_ornament> is shown #359

Open
llrs-roche opened this issue Nov 21, 2024 · 0 comments
Labels
Difficulty: Medium Mild design and/or technical implementation challenges

Comments

@llrs-roche
Copy link

Converting a list_of_pkg_metric to a data.frame or a score (output class list) leads to <pillar_ornament> on screen:

library("riskmetric")
dplyr <- pkg_ref("dplyr", source = "pkg_cran_remote")
dplyr_a <- pkg_assess(dplyr)
#> No encoding supplied: defaulting to UTF-8.
#> No encoding supplied: defaulting to UTF-8.
#> No encoding supplied: defaulting to UTF-8.
#> No encoding supplied: defaulting to UTF-8.
list2DF(dplyr_a[lengths(dplyr_a) == 1])
#>            covr_coverage           has_news           news_current
#> 1 <pillar_ornament>NA    <pillar_ornament>1 <pillar_ornament>TRUE 
#>              r_cmd_check     exported_namespace      has_vignettes
#> 1 <pillar_ornament>NA    <pillar_ornament>NA    <pillar_ornament>9
#>              export_help                                        has_maintainer
#> 1 <pillar_ornament>NA    <pillar_ornament>Hadley Wickham  <hadley at posit.co>
#>            size_codebase                                  has_source_control
#> 1 <pillar_ornament>NA    <pillar_ornament>https://github.com/tidyverse/dplyr
#>   has_bug_reports_url             downloads_1yr
#> 1  <pillar_ornament>1 <pillar_ornament>18056354
#>                               license
#> 1 <pillar_ornament>MIT + file LICENSE

Created on 2024-11-21 with reprex v2.1.1

It happens the same if I use the score: dplyr_s <- pkg_score(dplyr_a) and then list2DF(dplyr_s) or as.data.frame(dplyr_s). I think it has something to do with classes pkg_score and pkg_metric.

The output is correct, and it does't affect the normal operation on the data.frame and can be saved without those characters (for example using write.csv(list2DF(dplyr_a[lengths(dplyr_a) == 1]), file = "riskmetric_score.csv")) just but it would be nice if this weren't printed on the R console.

@llrs-roche llrs-roche added the Difficulty: Medium Mild design and/or technical implementation challenges label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Medium Mild design and/or technical implementation challenges
Projects
None yet
Development

No branches or pull requests

1 participant