The sample data you'll need is available from this book's GitHub repository at https://github.com/PacktPublishing/R-Bioinformatics-Cookbook. If you want to use the code examples as they are written, then you will need to make sure that this data is in a sub-directory of whatever your working directory is.
Here are the R packages that you'll need. In general, you can install these with install.packages("package_name"). The packages listed under Bioconductor need to be installed with the dedicated installer. If you need to do anything further, installation will be described in the recipes in which the packages are used:
- Bioconductor
- Biobase
- caret
- class
- dplyr
- e1071
- factoextra
- fakeR
- magrittR
- randomForest
- RColorBrewer
Bioconductor is huge and has its own installation manager. You can install the manager with the following code...