1

I'm trying to use the quantstrat package in R. I have uploaded/installed the package using

install.packages("quantstrat", repos="http://R-Forge.R-project.org") 

However the once I use

require(quanstrat) 

I get the message :

Loading required package: quantstrat Failed with error: ‘package ‘blotter’ required by ‘quantstrat’ could not be found’

I then use

install.packages("blotter", repos="http://R-Forge.R-project.org") 

but get the following message:

Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘blotter’ These will not be installed

Can anyone offer some suggestion?

NMRQL
  • 65
  • 1
  • 6
  • Well, if the error message says it's only avaialblein source form, install the source form. `install.packages("blotter", repos="http://R-Forge.R-project.org", type="source")` – MrFlick May 25 '15 at 19:14
  • tried that MrFlick , but now i get the following result? – NMRQL May 25 '15 at 19:28
  • Warning in install.packages : package ‘blotter’ is not available (for R version 3.2.0) – NMRQL May 25 '15 at 19:29
  • If you are using Windows, you probably need to install [Rtools](http://cran.at.r-project.org/bin/windows/Rtools/) first. –  May 26 '15 at 01:00
  • @MrFlick thanks for the suggestion. I tried this but now get the following eror message: – NMRQL May 26 '15 at 08:12
  • Related: [Cannot install R-forge package using install.packages](http://stackoverflow.com/q/11105131/271616) – Joshua Ulrich May 30 '15 at 21:47
  • My problem seems to have been a windows vs R version compatibility issue. Ive reinstalled an older version of R (3.1.3) and everythings is now working. THanks to everyone for all the suggestions and help. – NMRQL May 31 '15 at 06:28

1 Answers1

0

I am very late here, but perhaps relevant to note that "blotter" and "quantstrat" are not on CRAN, and several years ago moved to GitHub. The README on the repo (https://github.com/braverock/quantstrat) has more information for installing blotter and more importantly quantstrat.

install.packages("devtools") # if not installed
install.packages("FinancialInstrument") #if not installed
install.packages("PerformanceAnalytics") #if not installed

# next install blotter from GitHub
devtools::install_github("braverock/blotter")
# next install quantstrat from GitHub
devtools::install_github("braverock/quantstrat")