Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For this exercise, I believe I successfully completed the tasks of forking the repository and submitting a pull request. However, I encountered issues with the R script file while working on the provided code. Specifically, I kept receiving an error stating that the API key was invalid or inactive. I activated the API key, and it was stored successfully in R.
In the "Pull the Census" section, I noticed an inconsistency: when I ran the code line by line, adding an additional line each time, it executed successfully. However, when I attempted to run the entire chunk at once, I encountered the following error:
"Getting data from the 2018-2022 5-year ACS
Downloading feature geometry from the Census website. To cache shapefiles for use in future sessions, set options(tigris_use_cache = TRUE).
Using FIPS code '42' for state 'PA'
No encoding supplied: defaulting to UTF-8.
Error: You have supplied an invalid or inactive API key. To obtain a valid API key, visit https://api.census.gov/data/key_signup.html. To activate your key, be sure to click the link provided to you in the email from the Census Bureau that contained your key".
I'm unsure why this error occurred and would appreciate the opportunity to discuss it further to better understand the issue and ensure it does not negatively impact my grade.