R code to download Options and Futures data from NSE

The code below can download daily bhav for Futures and Options from the NSE website

I have also include sample code that downloads indices level from the National Stock Exchange