R Markdown: YAML, Parameters

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 17

  • @dasrotrad
    @dasrotrad 3 ปีที่แล้ว +2

    WoW! This is GREAT. I spent hours trying to figure out how to do this, but you have explained it so simply. This is really a wonderful addition to my workflow. Parameters can be confusing to learn. I have read several different resources on Parameters but deploying this specific type of example remained elusive to me. I look forward to applying Shiny as you suggest at the end of this video. I didn't find an example in your extant videos, so I hope you include more videos on how to deploy Parameters in RMarkdown *and* to deploying with Shiny. Thank you so much.

    • @DataScienceforEveryone
      @DataScienceforEveryone  3 ปีที่แล้ว

      Thank you for your support! I'll work on a few videos with some examples for you soon. I plan on making a Shiny development playlist in the near future.

  • @alessand22
    @alessand22 2 ปีที่แล้ว +2

    That's exact what I was searching for. Thanks a lot!

  • @alessand22
    @alessand22 2 ปีที่แล้ว +1

    Hello,
    To share my experience.
    Date format in parameters might return errors if the format "%B %d, %Y" is applied to some months in Latin languages.
    In Portuguese, for example, March is written using special characters, "Março", and R returned
    -----
    label: setup (with options)
    List of 1
    $ include: logi FALSE
    Quitting from lines 16-20 (test_report.Rmd)
    Error in nchar(input) : invalid multibyte string, element 1
    ------
    So I tried data parameters using "%d/%B/%Y" and it worked properly.
    Thanks again!!!

  • @ahmed007Jaber
    @ahmed007Jaber 2 ปีที่แล้ว +1

    thank you for this. is there a way to split tables to fit available space in a slide

    • @DataScienceforEveryone
      @DataScienceforEveryone  2 ปีที่แล้ว

      Here is an example:
      You need to use the longtable argument.
      knitr::kable(
      iris[1:55, ], longtable = TRUE, booktabs = TRUE,
      caption = 'A table generated by the longtable package.'
      )

    • @ahmed007Jaber
      @ahmed007Jaber 2 ปีที่แล้ว

      @@DataScienceforEveryone interesting. thank you for this.
      what would the output be like? it would spread across slides???
      will check it out for sure

  • @N1loon
    @N1loon 3 ปีที่แล้ว +2

    This is very helpful. Thank you for this!
    Btw, what theme are you using in RStudio? I like this one a lot, especially the fact that the package name is in italic when you access a function from it

    • @DataScienceforEveryone
      @DataScienceforEveryone  3 ปีที่แล้ว +1

      RStudio Theme: Modern
      Editor font: Monaco
      Editor Theme: Dracula

    • @N1loon
      @N1loon 3 ปีที่แล้ว

      @@DataScienceforEveryone That's awesome, thank you!
      I can't find that specific font in RStudio though, can you tell me where to download it?

    • @DataScienceforEveryone
      @DataScienceforEveryone  3 ปีที่แล้ว

      @@N1loon The Monaco font is for Mac/Linux machines. But you can download it pretty easily if. you search: "monaco font windows download"
      I tried out the first few search results on a Windows instance and the seem to be good downloads.

    • @N1loon
      @N1loon 3 ปีที่แล้ว

      @@DataScienceforEveryone Worked! Thank you :)

  • @richardsmith9399
    @richardsmith9399 2 ปีที่แล้ว +1

    MEOW @ 3:46

    • @DataScienceforEveryone
      @DataScienceforEveryone  2 ปีที่แล้ว +1

      Yep. That's our cat Tomu. He likes to make appearances from time to time!

    • @richardsmith9399
      @richardsmith9399 2 ปีที่แล้ว +1

      @@DataScienceforEveryone Tomu best not step foot on my property!