How do I store the html or text of a R helpfile into a variable

I would like to store the helpfile of my R function into a variable. I would prefer to store the html version. I would like to do this so that I can write it into a local .html file. For example, ...