read.csv from repository #114315
Replies: 2 comments
|
It seems like it doesn't work because your repo is private, making it public should solve the issue. You can do it by opening your repo on GitHub and then If you can't for any reason download the file and access it locally or use another service for storing the file with a permanent token would be the way to go |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Question
Body
Hi I am trying to read a .csv file from repository in R. I have it set up as read.csv("myrawdatalink"). The issue is that there is a token included in my raw data link that keeps changing, so if I want to run my code tomorrow, it won't work and I get this error message:
Warning: cannot open URL 'https://raw.githubusercontent.com/nmac2000/Regen/main/Data/Site.csv?token=GHSAT0AAAAAACPN4GFQ3O2WLKGUOTTPFUNKZQB5OTA': HTTP status was '404 Not Found'Error in file(file, "rt") :
cannot open the connection to 'https://raw.githubusercontent.com/nmac2000/Regen/main/Data/Site.csv?token=GHSAT0AAAAAACPN4GFQ3O2WLKGUOTTPFUNKZQB5OTA'
What is the best way for me to work around this? Is there a way for me to change my file sharing settings or something?
Any help would be appreciated!
All reactions