Closed jmacost5 closed 2 years ago
@jmacost5 , please read the following page, it specifically says about your first error.
https://watts-college.github.io/cpp-528-spr-2022/labs/lab-03-tutorial.html
@jmacost5, try fs::dir_tree() to directory structure for the project.
@jmacost5, try fs::dir_tree() to directory structure for the project.
Can you elaborate on how/where to use fs::dir_tree()? I'm having the same problem (just wrote my question as issue #11. Thank you!
When you knit a RMD file, the file has to be in top level directory structure, if the RMD file in a low level directory structure some people are getting an error. By issuing that command you are making sure that your file is in the right directory. Ujitha
From: johaning @.> Sent: Sunday, April 3, 2022 3:17 PM To: Watts-College/cpp-528-spr-2022 @.> Cc: Ujitha Senanayake @.>; Comment @.> Subject: Re: [Watts-College/cpp-528-spr-2022] Week 3 Data Cleaning (Issue #9)
@jmacost5https://github.com/jmacost5, try fs::dir_tree() to directory structure for the project.
Can you elaborate on how/where to use fs::dir_tree()? I'm having the same problem (just wrote my question as issue #11https://github.com/Watts-College/cpp-528-spr-2022/issues/11. Thank you!
— Reply to this email directly, view it on GitHubhttps://github.com/Watts-College/cpp-528-spr-2022/issues/9#issuecomment-1086931118, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD6Q7XWJPM2OAQLSRGNFR2TVDHVCZANCNFSM5SHCMDFA. You are receiving this because you commented.Message ID: @.***>
I'm still stuck on this. Running fs::dir_tree() shows my directory structure but I'm not sure what do do with that.
The first section of code in the project_data_steps.R file has a line: .from = here:here( "labs/utilities.R") I think this should instead be "labs/wk03/utilities.R" since I saved the utilities.R file into the wk03 folder, not just the labs folder.
When I run it as written, I get: Error in loadNamespace(name) : there is no package called ‘C:/Users/johan/RStudio-all/CPP-528/labs/utilities.R’ Error in obtain_crosswalk() : could not find function "obtain_crosswalk" etc
When I change to "labs/wk03/utilities.R" the global environment now contains cw, relevant_file, and RELEVANT_FILES which makes me think it is working at least part of the way, but I get the error message Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : cannot open file 'C:/Users/johan/RStudio-all/CPP-528/data/raw': Permission denied
I've been googling about the permission denied warning, but it quickly gets above my head about changing windows permissions files.
@Johaning,
Are the two raw harmonized census data sets files unzipped and uploaded into your raw directory?
Link to zip files: https://watts-college.github.io/cpp-528-spr-2022/labs/lab-02/
Additionally, those files should be uploaded into your Team's repo ...data/raw/
directory
After you download utilities.R and _project_datasteps.R, you should save both within labs/wk03/
per the instructions here.
Use fs:dir_tree()
to help confirm the location of the above two files. Your .Rmd and .html files will eventually join the above two files in the same folder (labs/wk03/
).
Hello Everyone I am stuck on the first part of the lab I keep getting errors in my code to clean the data.
(This comment has been edited for improved readability. ~@yukicruz )