Closed sjone128 closed 1 year ago
Hello @sjone128, if you clear your environment before running the import step do you receive the same error message?
Also, do you have any steps before that one that imports functions/variables with the same name?
Hi @castower - I appreciate your help!
I closed the project, cleared the environment/output, and restarted R to try your suggestion. I opened the project and only loaded the project file and the lab04 files from the R environment. Unfortunately, I got the same error. I'm running into the error in the first code chunk for the lab04 tutorial. I tried running by loading from my file search too but that didn't work either.
Hey @sjone128 can you send me your two files and I'll take a look?
Hi @castower, thank you for your response yesterday! I tried your idea with no success. I sent you a couple of emails with an update on what I've done to fix the error.
To close this issue: We were unable to find the error and resolved the issues by including the eval=FALSE. No solution was shared when I received my graded lab. If I find a solution I'll reopen this issue and post the solution.
Hi @sjone128, I'll take a look at this also.
Similar to Bethany's problem in lab 03, the import::here function is not working for me. I attached a screenshot of my screen and did the following steps.
Here's the error: Error: Cannot assign name to different value in the given environment. Name already in use. (traceback below)
@castower, any advice would be so appreciated!
10. stop(e$message, call. = FALSE) 9. value[3L] 8. tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. tryCatchList(expr, classes, parentenv, handlers) 6. tryCatch(eval.parent(import_call), error = function(e) stop(e$message, call. = FALSE)) 5. import::from(.from = here::here("labs/lab_04_source.R"), "S_TYPE", "panel.cor", "panel.smooth", "jplot", "d", "df", "cbsa_stats_df", .character_only = TRUE, .into = { environment() ... 4. eval(expr, p) 3. eval(expr, p) 2. eval.parent(cl) 1. import::here("S_TYPE", "panel.cor", "panel.smooth", "jplot", "d", "df", "cbsa_stats_df", .from = here::here("labs/lab_04_source.R"), .character_only = TRUE)