## Not run:
#
# # using the pop-up selection menu
# rg <- importExcel()
#
# # supposing that the data file sample.txt is in the current directory
# file <- "grid.xlsx"
# rg <- importExcel(file)
#
# # specifying a directory (arbitrary example directory)
# dir <- "/Users/markheckmann/data"
# rg <- importExcel(file, dir)
#
# # using a full path
# rg <- importExcel("/Users/markheckmann/data/grid.xlsx")
#
# # import more than one Excel file via R code
# files <- c("grid_1.xlsx", "grid_2.xlsx")
# rg <- importExcel(files)
# ## End(Not run)
Run the code above in your browser using DataLab