Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a package #6

Open
rathko opened this issue Dec 5, 2012 · 6 comments
Open

Create a package #6

rathko opened this issue Dec 5, 2012 · 6 comments

Comments

@rathko
Copy link

rathko commented Dec 5, 2012

This package looks great, would it be possible to create a package instead of sourcing the files?

@rathko
Copy link
Author

rathko commented Dec 5, 2012

I just noticed the file make.sit.pkg.r. Will play around this, unfortunately it works only on Windows

@systematicinvestor
Copy link
Owner

It is work in progress. Here is an example of running SIT

###############################################################################

RCurl installation - work on all platforms

###############################################################################
library(RCurl)
writeBin(getBinaryURL('http://www.systematicportfolio.com/SIT.tar.gz', followlocation = TRUE, ssl.verifypeer = FALSE), 'sit')
install.packages('sit', repos = NULL, type='source')

###############################################################################

To use SIT:

###############################################################################
library(SIT)

###############################################################################

Example Usage:

###############################################################################

Run plota test

SIT:::plota.test()

@rathko
Copy link
Author

rathko commented Dec 10, 2012

It's fairly easy to create a package. All you have to do is create two files in your main folder (on the same level where "R" folder is):
"DESCRIPTION", for example:
Package: SIT
Type: Package
Title: Systematic Investor Toolbox
Version: 1.0.0
Date: 2012-10-12
Author: Michael Kapler
Maintainer: [email protected]
Description: SIT
Depends: R(>= 2.9.2)
License: What license is it under?
LazyLoad: yes

And "NAMESPACE":
exportPattern("^[[:alpha:]]+")

Then to install it under R it's enough to run (where SIT is where the git code is checked out into):
R CMD INSTALL SIT

@xgdgsc
Copy link

xgdgsc commented Jul 9, 2014

I saw your pkg folder. I don' t know why you need this duplicate folder of R, instead of maitaining the package directly.

@yingchauhuang
Copy link

Good suggestion.
I will remove the duplicate folder.
Just too busy. Don't have time to trace your code.

Thanks for your message.

YC

On Wed, Jul 9, 2014 at 11:51 AM, xgdgsc [email protected] wrote:

I saw your pkg folder. I don' t know why you need this duplicate folder of
R, instead of maitaining the package directly.


Reply to this email directly or view it on GitHub
#6 (comment)
.

嘉實資訊
策略長
SysJust INC
Chief Strategy Officer
email: [email protected]
gmail: [email protected]
line: yingchauhuang
phone: (02)29108899-321
mobile: 0988211788

@geneorama
Copy link

I second the suggestion of removing the duplicate R folders. I just did a compare on them and there are only a couple of files that are different.

I don't actually want to use your code directly (although it looks pretty cool and I've already learned a couple of things from it) but I am using your project as an example of good organization!

PS: Please don't visit my repos. I live in a glass house.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants