# NOT RUN {
# Set default author
author <- "Henrik Bengtsson, \url{http://www.braju.com/R/}"
# Show the file containing the Rdoc comments
rdocFile <- system.file("misc", "ASCII.R", package="R.oo")
file.show(rdocFile)
# Compile the Rdoc:s into Rd files (saved in the destPath directory)
destPath <- tempdir()
Rdoc$compile(rdocFile, destPath=destPath)
# List the generated Rd files
rdFiles <- list.files(destPath, full.names=TRUE)
print(rdFiles)
# Show one of the files
file.show(rdFiles[1])
# Clean up
file.remove(rdFiles)
# }
Run the code above in your browser using DataLab