Q:

Getting objects in a situation where their name matters

I have a list of functions that I'd like to make documentation for.   My question is not about how to do this, but it provides a convenient example of something I'm curious about. 
prompt takes a function and a character string as arguments, and writes a help file on that function to the file represented by the character string path.   In looping over the files, using prompt(f,filename=...) doesn't work since f is of type character.   I tried get(f), which pulls the function out just fine, but doesn't give prompt enough information to work with (see below).   So how do I force a character element to return the whole object not just the function that it names? 
files <- c("current.market","current.portfolio.bond","fund","genAccount","genHistory.market","history.market","maRketSim.version","summary.vasicek.discrete","vasicek.discrete")
for(f in files) {
  prompt( get(f), filename=paste("c:/myproject/man/",f,". Rd",sep="") )
}
Error in prompt.default(get(f), filename = paste("F:/Documents/R-projects/maRketSim/man/",  : 
  cannot determine a usable name

A:

? prompt tells us that
Arguments:

  object: an R object, typically a function for the default method. 
          Can be ‘missing’ when ‘name’ is specified. 

So I think prompt() already does what you want:
> prompt(name = "print", filename = "print. Rd")
Created file named 'print. Rd'. 
Edit the file and move it to the appropriate directory. 

Which does produce the relevant Rd file:
> writeLines(readLines("~/print. Rd"))
\name{print}
\alias{print}
%- Also NEED an '\alias' for EACH other topic documented here. 
\title{
%%  ~~function to do ... ~~
}
\description{
%%  ~~ A concise (1-5 lines) description of what the function does.  ~~
}
\usage{
print(x, ...)
}
%- maybe also 'usage' for other objects documented here. 
\arguments{
  \item{x}{
%%     ~~Describe \code{x} here~~
....

I should add, that get("foo") does return the actual function, it is just the way that prompt() is coded that it can't work with an anonymous function as returned by get().