A problem of the above regressions with R

(1) Fit an all-subset regression model with a number of predictor variables (more than 8)

(2) Fit a ridge regression model a number of predictor variables (more than 8)

Any idea about what R syntax and packages should be used for generating the results / graphs?

Thanks so much!!!!!!!!!!!!!!!!!!!!!!!!!!