Skip to main content

Posts

Installing R into Jupyter

Follow the link https://github.com/IRkernel/IRkernel
Recent posts

Using Roxygen to create minimal documentation

To create documentation for a function using roxygen2 you need #Load the necessary libraries library(devtools) library(roxygen2) dir.create("packagedir") #unlink("packagedir", recursive=TRUE) # If you want to delete the directory for some reason setwd("packagedir") create() # This will create the package skeleton for roxygen2 to work create the function\functions you need to document in the R directory ensure that you are at the top level of the directory and not in the directory document() #This will create the rd documents setwd("..") # Go one directory step up install("packagedir") #Enter your package name here shell("rm -f packagedir.pdf") shell("R CMD Rd2pdf packagedir") #This will create a packagedir.pdf file in the directory setwd("./packagedir")

Github tutorial for R

http://kbroman.org/github_tutorial/ http://revolunet.github.io/blog/2015/07/15/beautiful-static-website-in-minutes-with-github/ http://jsbooks.revolunet.com/ http://chimera.labs.oreilly.com/books/1234000000262/pr01.html#introduction

RQuantlib installation in Windows (RQuantLib version 0.4.2)

The RQuantLib installation in Windows is quite straight forward. Download the windows binaries for either devel or release from here https://CRAN.R-project.org/package=RQuantLib Extract the files and copy the RQuanlib folder into the library folder of your R installation E:\R\R-3.1.3\library Once you copy it there fire up RStudio and when you run > library(RQuantLib) QuantLib version 1.6.2 detected which is older than 1.7. Intra-daily options analytics unavailable with that version. Warning message: package ‘RQuantLib’ was built under R version 3.3.1     The version number is older here because I think the CRAN windows binary upload did not make it in time with the QUantlib version 1.8.0. Running getQuantLibVersion will give you the version     > getQuantLibVersion() [1] "1.6.2"