In this video, we look at YAML parameters. Parameters are useful when you want to re-render the same report with distinct values for various key inputs.
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.
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.
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
@@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.
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!!!
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.' )
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.
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.
That's exact what I was searching for. Thanks a lot!
Glad it was helpful!
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
RStudio Theme: Modern
Editor font: Monaco
Editor Theme: Dracula
@@DataScienceforEveryone That's awesome, thank you!
I can't find that specific font in RStudio though, can you tell me where to download it?
@@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.
@@DataScienceforEveryone Worked! Thank you :)
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!!!
Thank you for sharing!
thank you for this. is there a way to split tables to fit available space in a slide
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.'
)
@@DataScienceforEveryone interesting. thank you for this.
what would the output be like? it would spread across slides???
will check it out for sure
MEOW @ 3:46
Yep. That's our cat Tomu. He likes to make appearances from time to time!
@@DataScienceforEveryone Tomu best not step foot on my property!