Bulma study case: Checking Results

  1. On the project we can find R/BulmaCase-utils.R to make available functions to:
  • Facilitate HTML dependency management

    • add_dependencies: Attach all created dependencies in the ./R directory to the provided tag.


  • Validate HTML

    • validate_width: Validate Bootstrap compatible element width parameter [1,12].
    • hasCssClass: Return TRUE if a shiny.tag object has a CSS class, FALSE otherwise.
    • tagAssert: Check that a tag has specific type or class.
    • tagMatches: Check that tag has a particular id, name or class.
    • findAttribute: Find the child of the targeted element that has a specific attribute and value.


  • Avoid repeating code

    • equals: Similar to == but safer in relation to vector length. equals(1, 1L) returns TRUE.
    • dropNulls: Remove NULL list elements.