Skip to content

Latest commit

 

History

History
107 lines (77 loc) · 4.04 KB

about.md

File metadata and controls

107 lines (77 loc) · 4.04 KB
layout title permalink
page
About
about/

This is a new home for SystematicInvestor blog it was previously hosted at Wordpress. I'm making this move to simplify / automate / ease / speed up process of sharing my ideas / blogging.

This blog is a collection of my thoughts that I want to share without any warranties or guarantees. For more details, please visit About Blog post.

This blog is hosted on GitHub Pages and is written using R Markdown. For more details, please visit Setup Steps post.

I use R for most of my research and created a Toolbox to help test new ideas. I.e. Systematic Investor Toolbox (SIT) is a collection of tools that I use in my investment research.

There are two ways to load Systematic Investor Toolbox (SIT) functionality:

Please make sure that curl package is already installed and if not, please execute {% highlight r %}install.packages('curl', repos = 'http://cran.r-project.org'){% endhighlight %}

{% highlight r %} ###############################################################################

Install Systematic Investor Toolbox (SIT) package

github.com/systematicinvestor/SIT

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

please first install SIT.date

devtools::install_github('systematicinvestor/SIT.date')

library(curl) curl_download('https://github.com/systematicinvestor/SIT/raw/master/SIT.tar.gz', 'sit',mode = 'wb',quiet=T) install.packages('sit', repos = NULL, type='source') {% endhighlight %}

and next load Systematic Investor Toolbox (SIT) library

{% highlight r %} library(SIT) {% endhighlight %}

  • Second method is to download source code and load it into R session

{% highlight r %} ###############################################################################

Load Systematic Investor Toolbox (SIT)

github.com/systematicinvestor/SIT

############################################################################### library(curl) con = gzcon(curl('https://github.com/systematicinvestor/SIT/raw/master/sit.gz','rb')) source(con) close(con) {% endhighlight %}

Both methods are equivalent. If you want to keep Systematic Investor Toolbox (SIT) always up-to-date second method is way to go. If you want to just to get Systematic Investor Toolbox (SIT) first method is easier because you only download it once, and later on just load Systematic Investor Toolbox (SIT) with library(SIT) command.

Once Systematic Investor Toolbox (SIT) is loaded, using either of two methods above, you can for example test sample functionality of plota.test() function.

{% highlight r %} ###############################################################################

Example Usage:

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

Run a plot test

plota.test() {% endhighlight %}

In some of my coding I also use a mixture of these two methods. See below:

{% highlight r %} ###############################################################################

Load Systematic Investor Toolbox (SIT)

github.com/systematicinvestor/SIT

############################################################################### library(curl) if(!file.exists('../sit')) curl_download('https://github.com/systematicinvestor/SIT/raw/master/sit.gz', '../sit',mode = 'wb',quiet=T) con = gzcon(file('../sit', 'rb')) source(con) close(con) {% endhighlight %}

subscribe via RSS