forked from rstudio/Intro
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Describe the bug
Uh-oh. There's a bug! In the Structure data, there's a line of code that calls on foo', but it was previously removed and throws this error: "object foo` not found"
To Reproduce
Steps to reproduce the behavior:
- Run the following code:
foo <- 42
foo <- round(3.1415) + 1
foo
[1] 4
factorial(foo)
[1] 24
foo
[1] 4
rm(foo)
foo - Observe error when calling `foo'
Error: object 'foo' not found
Expected behavior
foo should not be called again. If `foo' is needed, it should be either (a) not removed, or (b) redefined
Screenshots
Desktop (please complete the following information):
- OS: iOS v.11.6
- Browser: Chrome
- Version: 95.0.4638.54
Smartphone (please complete the following information):
None at use
Additional context
Good practice! π
Metadata
Metadata
Assignees
Labels
No labels
