Skip to content

Back to not-centered argument names in documentation #13106

Closed

Description

@LuisLauM

This is just a suggest. In my opinion, centering the names of the arguments in the help panel could lead missunderstandings in some functions. For instance, the function rmarkdown::word_document has arguments with large explainations that includes periods, so it is not clear to find out where starts/ends the definition of some of the arguments.

image

Activity

  1. added
    new
    on May 10, 2023
  2. added and removed
    new
    on May 11, 2023
  3. ronblum commented on May 11, 2023

    @ronblum
    Contributor

    @LuisLauM Thank you for raising this! As a comparison point, the help from standalone R is top-justified.

    justified
  4. LuisLauM commented on May 11, 2023

    @LuisLauM
    Author

    Yes or maybe just like the terminal version (in line with the text).

    image

  5. kevinushey commented on May 11, 2023

    @kevinushey
    Collaborator

    The argument names appear to be top-justified for me:

    Screenshot 2023-05-11 at 10 46 10 AM

    This is with 2023.05.0 Build 325. Can you provide more details?

  6. kevinushey commented on May 11, 2023

    @kevinushey
    Collaborator

    Ah, this is a change in R 4.3.0 (my prior post was testing with R 4.2.3). Given that this is due to a change in R, not RStudio, I would recommend filing a bug with the R Core team. We could consider modifying the CSS to preserve the old presentation, though.

  7. kevinushey commented on May 11, 2023

    @kevinushey
    Collaborator

    For reference, R used to set vertical-align: top on the table rows. This is part of the HTML generated with R 4.2.3:

    Screenshot 2023-05-11 at 10 51 35 AM

    But with R 4.3.0, I see:

    Screenshot 2023-05-11 at 10 52 41 AM
  8. LuisLauM commented on May 11, 2023

    @LuisLauM
    Author

    Honestly, it is not clear to me. Because when I use the command ?rmarkdown::word_document in RGui of R 4.3.0, shows me an HTML with the argument names at the top. It is just in RStudio when I see the issue, so I do not how the R Core Team will treat an issue that I can only reproduce in RStudio (but not in RGui or terminal).

    image

  9. added this to the Desert Sunflower milestone on Aug 14, 2023
  10. self-assigned this
    on Aug 14, 2023
  11. ronblum commented on Aug 21, 2023

    @ronblum
    Contributor

    Verified in RStudio Desktop 2023.09.0-daily+348 on MacOS 14 using R 3.6.3, 4.2.3, and 4.3.1.

  12. joshua-theisen commented on Sep 11, 2023

    @joshua-theisen

    I'm still having this issue with this system:

    > R.Version()[c(1, 14)]
    $platform
    [1] "x86_64-w64-mingw32"
    
    $version.string
    [1] "R version 4.3.0 (2023-04-21 ucrt)"
    

    Rstudio information
    RStudio 2023.06.2 Build 561
    "Mountain Hydrangea" Release (de44a31, 2023-08-25) for windows
    Mozilla/5.0 (Windows NT 10.0; Win64; x64)
    AppleWebKit/537.36 (KHTML, like Gecko)
    RStudio/2023.06.2+561
    Chrome/110.0.5481.208
    Electron/23.3.0
    Safari/537.36

  13. ronblum commented on Sep 11, 2023

    @ronblum
    Contributor

    @joshua-theisen This is fixed in the upcoming release, currently in progress. Builds for it are available at http://dailies.rstudio.com. Please note that these are for test and development purposes only, not production use.

  14. joshua-theisen commented on Sep 11, 2023

    @joshua-theisen

    My apologies, I just downloaded 2023.06.2 and missed the detail that your fix is in the daily build. Thanks for your great work!

  15. ronblum commented on Sep 11, 2023

    @ronblum
    Contributor

    @joshua-theisen No problem—thanks for catching this, regradless. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions