Hello R help,
I am in the process of creating the companion to my book which illustrates how 
to call Bond Lab (my R package for MBS and fixed income).  

I started with the idea of scripts and then functions calling functions.  
Neither seemed very good to me.  I checked a couple of packages (Max Kuhn, 
etc.).  The companions were mostly scripts that the user can copy paste.  So, I 
thought I would try that with Roxygen2.   I have tried a few iterations.  The 
code I have tried is variation of below and does not work.  Does anyone know if 
I can use Roxygen2 in this way or do I need to seek an alternative.

Thanks,
Glenn

#' Chapter 1 Present Value Function Example
#' 
#' The script example calls the presesnt value function
#' from the package BondLab
#' @examples
#' \dontrun{
require(BondLab)
PV = TimeValue(interest.rate = .05,
               number.periods = 3,
               frequency = 1,
               type = "PV")}
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to