How can this Hide button (top-right corner) be removed from the R Notebook code blocks?
I think you can do this by setting code_folding = "none" see https://www.rdocumentation.org/packages/rmarkdown/versions/1.10/topics/html_notebook and
code_folding = "none"
You can set it in the yaml header as an option for html_notebook
html_notebook