## getClass-
getClass("fPFOLIOCON")
## getSlots -
getSlots("fPFOLIOCON")
## data -
data = as.timeSeries(data(smallcap.ts))
## portfolioConstraints -
spec = portfolioSpec()
setTargetReturn(spec) = mean(data)
portfolioConstraints(data, spec, "LongOnly")
Run the code above in your browser using DataLab