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

print methods should invisibly return the object #128

Closed
Enchufa2 opened this issue Dec 13, 2017 · 1 comment
Closed

print methods should invisibly return the object #128

Enchufa2 opened this issue Dec 13, 2017 · 1 comment
Labels

Comments

@Enchufa2
Copy link
Member

In base R,

foo <- print(2)
#> [1] 2
foo
#> [1] 2

but

env <- print(simmer())
#> simmer environment: anonymous | now: 0 | next: 
env
#> NULL

traj <- print(trajectory())
#> trajectory: anonymous, 0 activities
traj
#> NULL

etc.

@Enchufa2
Copy link
Member Author

See r-lib/R6#140.

Enchufa2 added a commit that referenced this issue Mar 26, 2018
Enchufa2 added a commit that referenced this issue Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant