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

Arbuthnot not adding to environment #105

Open
EricFriedlander opened this issue Jan 12, 2022 · 3 comments
Open

Arbuthnot not adding to environment #105

EricFriedlander opened this issue Jan 12, 2022 · 3 comments

Comments

@EricFriedlander
Copy link

Hello! I'm working through Lab 1 in preparation for the spring semester. I've found that when I follow the directions in the lab and simply type arbuthnot into my console (or in a chunk) it does not add arbuthnot to my global environment. Am I doing something incorrectly? Is there an option in RStudio that I need to change?

I can add it by either typing arbuthnot <- arbuthnot or data(arbuthnot) which seems to be how it used to be coded. Any tips?

@mine-cetinkaya-rundel
Copy link
Collaborator

Correct, this is how R will load datasets lazily. If the goal is to get students to see the data, they can also use View(arbuthnot).

@EricFriedlander
Copy link
Author

EricFriedlander commented Jan 14, 2022

After the directions to just run the command arbuthnot the Lab says:

"The single line of code included in this code chunk instructs R to load some data: the Arbuthnot baptism counts for boys and girls. You should see that the Environment tab in the upper right hand corner of the RStudio window now lists a data set called arbuthnot that has 82 observations on 3 variables."

If I'm understanding your comment correctly, then this isn't true. Is that correct?

@mine-cetinkaya-rundel
Copy link
Collaborator

@EricFriedlander You're right, we should update these instructions. We've changed how data is loaded in the package (based on CRAN recommendations) and looks like we haven't updated the instructions to match. I'll reopen the issue as a reminder to update.

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