# NOT RUN {
txt <- "Price: <= 500$ & additional goodies"
toLatex(txt)
############################################################
## session info for automatic inclusion in reports
info <- toLatex(sessionInfo())
info
## extract first part (the Latex part)
toLatex(info)
## extract second part (the BibTeX part)
toBibtex(info)
############################################################
## usual usage scenario
## Do not run the following code automatically as it needs
## write access to the current working directory.
## This code (without removing the file) could for example
## be included in a LaTeX chunk of your Sweave or knitr
## report.
# }
# NOT RUN {
getwd() ## location where write access is needed
toLatex(sessionInfo(), file = "packages.bib")
file.remove("packages.bib")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab