## Not run:
#
#
# #What are all games that can/should be downloaded?
# #valid=FALSE implies previously screened problems.
# #Just a subset for testing.
# game.table <- full.game.database()[301:303,]
#
# #Get the details for these 20 games.
# print(game.table)
#
# #Takes HTML files and (possibly) GIF images and produces event and player tables for each game.
# process.games (game.table)
#
# #Give me a single game record.
# sample.game <- retrieve.game (season="20022003", gcode="20301")
#
# #Augment all games and put them all in one big database.
# compile.all.games (output.file="mynhlscrapes.RData")
#
#
# #################################################################
# # Extras:
#
#
# #Process games in parallel!
# library(doMC)
# registerDoMC(4)
#
# res <- foreach (kk=1:dim(game.table)[1]) %dopar%
# {
# message (paste(kk, game.table[kk,1], game.table$gcode[kk]))
# item <- process.single.game(
# game.table[kk,1],
# game.table$gcode[kk],
# save.to.file=TRUE)
# }
# ## End(Not run)
Run the code above in your browser using DataLab