[R] Lubridate and NameSpace
Roy Mendelssohn - NOAA Federal
roy.mendelssohn at noaa.gov
Sun Mar 1 00:32:17 CET 2015
Not certain but perhaps:
> lubridate::%m+%
there is a subtle difference between what the two and three colons do.
-Roy
On Feb 28, 2015, at 9:25 AM, Glenn Schultz <glennmschultz at me.com> wrote:
> Hello All,
>
> I am working on a package very near completion - roxygenizing it now. The namespace imports from lubridate importFrom(lubridate,"%m+%"). The problem is:
>
> Lubridate will not load with bondlab, I have to manually click on lubridate in R Studio to load it
> I tried calling function using lubridate:::%m+% within my function based on some discussion I found online. This is likely the correct idea but I don't think I am calling the function correctly since it does not work in the code when I use the above syntax.
> Any suggestions are appreciated>
>
> Best Glenn
>
> The description file is as follows:
>
> Package: BondLab
> Type: Package
> Title: A package for the analysis of structured products
> Version: 0.0.0
> Date: 2013-12-08
> Author: Glenn Schultz, CFA
> Maintainer: Glenn Schultz <glennmschultz at me.com>
> Description: The package provides a suite of software utilities for the analysis of Mortgage and Asset Backed securities
> LazyLoad: yes
> License: GPL(>=3.0)
> Imports: termstrc,
> lubridate,
> methods,
> optimx,
> Suggests: knitr,
> devtools,
> testthat
> VignetteBuilder: knitr
>
> The Namespace is as follows:
> # Generated by roxygen2 (4.1.0): do not edit by hand
>
> export(CPR.To.SMM)
> export(DollarRoll)
> export(Effective.Convexity)
> export(Effective.Duration)
> export(EstimYTM)
> export(MakeScenario)
> export(Mortgage.Monthly.Payment)
> export(MortgageCashFlow)
> export(PPC.Ramp)
> export(PassThroughAnalytics)
> export(PassThroughOAS)
> export(Rates)
> export(Remain.Balance)
> export(SMM.To.CPR)
> export(SMMVector.To.CPR)
> export(Sched.Prin)
> export(TermStructure)
> export(TimeValue)
> export(bondprice)
> import(methods)
> import(optimx)
> importFrom(lubridate,"%m+%")
> importFrom(termstrc,create_cashflows_matrix)
> importFrom(termstrc,create_maturities_matrix)
> importFrom(termstrc,estim_cs)
> importFrom(termstrc,estim_nss)
> importFrom(termstrc,forwardrates)
> importFrom(termstrc,spotrates)
>
>
> ______________________________________________
> R-help at 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.
**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
More information about the R-help
mailing list