Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 06 Error in import::here() #54

Open
kirstenronning opened this issue Apr 19, 2021 · 2 comments
Open

Lab 06 Error in import::here() #54

kirstenronning opened this issue Apr 19, 2021 · 2 comments

Comments

@kirstenronning
Copy link

I have combined the Lab 04 and Lab 05 source files into one, and I am able to effectively use it for my Lab 05 Rmd file. However, I am having issues with utilizing it for my Lab 04 Rmd file. It appears that the issue is in the "panel.cor" and "panel.smooth" functions that are used for the correlation matrix. When I try to run the import::here() function, I receive the following error message:

Error: Cannot assign name to different value in the given environment. Name already in use.

I have tried renaming both of these variables in a multitude of ways in my .R source file, but the same error message comes up. There does not seem to be much guidance on this specific Error Message on Stack Overflow or anything.

@cenuno
Copy link
Collaborator

cenuno commented Apr 19, 2021

Hi Kirsten,

This error is a general error in which an object exists in your Global Environment but your .rmd file is attempting to import the same object(s) again when you attempt to knit the file.

To fix this, please restart R and clear your Global Environment within RStudio. Try re-knitting and let me know how it goes.

Cheers,
Cristian

@kirstenronning
Copy link
Author

Ah, that worked! Hopefully I've finally learned my lesson to clear out my Global Environment as part of troubleshooting, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants