# NOT RUN {
#START_TAG_TEST
doc.filename = "addFooter/example.html"
# set default font size to 11
options( "ReporteRs-fontsize" = 11 )
doc = bsdoc( )
doc = addFooter( doc, value = pot( "Code licensed under ",
format = textProperties(color="gray") ) +
pot("GPL-3", format = textProperties(color="#428bca"),
hyperlink = "https://gnu.org/licenses/gpl.html" ) +
pot(".", format = textProperties(color="gray") ),
par.properties = parCenter( padding = 2 )
)
# Write the object
writeDoc( doc, file = doc.filename )
#STOP_TAG_TEST
# }
Run the code above in your browser using DataLab