Package Installing Issue

I am going to install a package "SIT", but got an error message, it reminds to install "Rtools". After having installed Rtools, still unable to install SIT, here is the error message:

Installing package into ‘C:/Users/jxzou/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘SIT’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
R Installation and Administration

How can I solve the problem? Thank you!

There is no such package on CRAN, perhaps you mean to install a different package ?
What led you to SIT ?

I found the following code online

Load historical data

tickers = 'SPY'
data = getSymbols(tickers, src = 'yahoo', from = '1950-01-01', auto.assign = F)

Euclidean distance, one to one mapping

obj = bt.matching.find(Cl(data), normalize.fn = normalize.mean, dist.fn = 'dist.euclidean', plot=T)
matches = bt.matching.overlay(obj, plot.index=1:90, plot=T)
matches = bt.matching.overlay(obj, plot=T, layout=T)
bt.matching.overlay.table(obj, matches, plot=T, layout=T)

Error message says "couldn't find function matching.find and bt.matching.overlay
Someone suggested to try SIT here:

That is why I am trying SIT. Thanks.

This information confirms that the package is off CRAN, following your links though you can find information on how to install this. the page shows a readme.txt with instructions
systematicinvestor/SIT: Systematic Investor Toolkit (

Thank you for your help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.