I am creating an R Shiny application using the following code. This is just 1 line.
UI.R
htmlTemplate("template.html", document_ = "FALSE",button = actionButton("action", "Action"))
With template.html there is:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>BLAH</title>
<meta name="description" content="">
<meta property="og:description" content="" />
<style type="text/css">
body {
background-color: white;
}
div.test {
font-size: 14px;
}
</style>
</head>
<body>
<div class = "test">
{{button}}
</div>
</body>
</html>
The problem is that I set document_ = "FALSE" in the htmlTemplate function, I get the following error:
Warning: Error in registerShinyDebugHook: attempt to set an attribute on NULL
If I remove this option, I lose CSS, I need to make selectInput look pretty, but I no longer have an error. Any suggestions?
source
share