You are missing a package dependency, you have to install it first
remotes::install_github("rwehrens/ChemometricsWithR")
Also, please do not post screenshots, it is considered a bad practice here, post formatted code instead. Here is how to do it