This code works fine when run locally (Windows 10), but gives me the following error when I try to run it through shinyapps[dot]io:
Warning in open.connection(file, "rt") : cannot open URL 'https://www.thepredictiontracker.com/ncaapredictions.csv': HTTP status was '403 Forbidden'
The little bit that I could find online suggested that there may be some issues with shinyapps[dot]io's Linux environment handling URLs, but I can't figure out how to correct for this.
The HTTP 403 error means that the server (at thepredictiontracker.com) refused the connection from shinapps.io
Does access to the csv you want on thepredictiontracker.com have any authentication requirements (that you maybe have configured locally but which wouldn't existing on shinyapps)?
As far as I know there isn't any authentication required for that website, but that would make sense. Maybe it has some kind of protections built in to prevent abuse from scraping bots or something.