An old R tutorial mention to use
library(gdata)
IrisContent<-read.xls("Iris.xls",sheet=1,header=T)
and running that, on RStudio-2023.12.0-369 using R version 4.3.2, I got
Error in read.xls("Iris.xls", sheet = 1, header = T) :
could not find function "read.xls"
I searched a few pages for an answer ans stumbled on read.xls function - RDocumentation and ran a very slightly modified version of its example
xlsfile <- file.path(path.package('gdata'),'xls','iris.xls')
iris <- read.xls(xlsfile)
and got
Error in read.xls(xlsfile) : could not find function "read.xls"
then I noticed on that page
Warning
Excel file support is deprecated in gdata version 2.19.0, to be removed in the near future.
Can Excel files still be read using gdata, and if so can it be in the same way as in the beginning of this post?
Thank you kindly for your help