[R] Package build help - thanks
Hello All, I have finally addressed all the cmd issues with my package build bondlab. I would like to thank everyone that took the time to answer my questions. I have the following question: Currently the package has a non-standard directory/folder structure. The non-standard folders are listed below. I use connections to open and close directories during an analysis run. I don't think having these directories in the bondlab directory is a long term viable option as the number of mortgage and REMIC cusips is well over 2 million. My question is two parts: First part, what do you believe is the best way to store these objects as blobs (everything is serialized) in a database or in a folder structure residing on the local machine. In the event I first start with a folder structure on a local machine. Is it possible to instruct R to create the directory and move the examples to the appropriate folder? For example, could I create a folder data and then move each of the below folders to data and on install move the data folders to say a bondlabdata folder? Best Regards, Glenn Non Standard Folders are below BondData - bond objects (S4) identified by cusip with structural information: coupon, payment dates, etc... Groups - collateral group data: (S4) identifies the underlying collateral group of a mortgage REMIC PrepaymentModel - S4 object which holds mortgage prepayment model tuning parameters RatesData - holds swap rate curve history RDME - REMIC Disclosure Month End (S4): updated REMIC information REMICData - REMIC structures (S4) Scenario - Interest rate scenarios (S4) for total return analysis Schedules - structure elements (S4) for REMIC (PAC Schedules, etc) Tranches - Tranches for REMIC structure tool (S4) Waterfall - source - cash allocation rules for REMIC cash flow __ 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.
Re: [R] Package build help
On Sun, Feb 8, 2015 at 5:15 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 08/02/2015 4:06 PM, Glenn Schultz wrote: Hello All, I am in the final stages of building my first package BondLab and the check throughs the following warning. I think this is namespace thing. I have not done anything with the namespace at this point. I am turning my attention to the namespace now. Am I correct this can be a handled by the namespace? I would guess you have imported the lubridate and plyr packages, and also defined your own duration() and here() functions, hiding theirs. You can also see this problem if you have import(plyr) import(plyr, here) etc. Or with import(plyr) import(lubridate) since I think both provide a here() function. Hadley -- http://had.co.nz/ __ 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.
[R] Package build help
Hello All, I am in the final stages of building my first package BondLab and the check throughs the following warning. I think this is namespace thing. I have not done anything with the namespace at this point. I am turning my attention to the namespace now. Am I correct this can be a handled by the namespace? Thanks, Glenn Found the following significant warnings: Warning: replacing previous import by ‘lubridate::duration’ when loading ‘BondLab’ Warning: replacing previous import by ‘plyr::here’ when loading ‘BondLab’ __ 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.
Re: [R] Package build help
On 08/02/2015 4:06 PM, Glenn Schultz wrote: Hello All, I am in the final stages of building my first package BondLab and the check throughs the following warning. I think this is namespace thing. I have not done anything with the namespace at this point. I am turning my attention to the namespace now. Am I correct this can be a handled by the namespace? I would guess you have imported the lubridate and plyr packages, and also defined your own duration() and here() functions, hiding theirs. Duncan Murdoch Thanks, Glenn Found the following significant warnings: Warning: replacing previous import by ‘lubridate::duration’ when loading ‘BondLab’ Warning: replacing previous import by ‘plyr::here’ when loading ‘BondLab’ __ 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. __ 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.