systematicinvestor / SIT

Systematic Investor Toolkit
483 stars 382 forks source link

Version check in 'optimize.portfolio.nlp' function #8

Open redmode opened 10 years ago

redmode commented 10 years ago

Hi!

FILE: SIT/R/aa.R LINE: 268

Should this code if( as.numeric( sessionInfo()$R.version$minor ) < 9 ) { be replaced with if( as.numeric( sessionInfo()$R.version$major ) < 3 && as.numeric( sessionInfo()$R.version$minor ) < 9 ) { ?

I came across this situation in my project. R Version 3.0.2, Rdonlp2 version 3.0.0

Best regards, Alex