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

empty-symbol in functional call #58

Open
genmeblog opened this issue Apr 21, 2020 · 3 comments
Open

empty-symbol in functional call #58

genmeblog opened this issue Apr 21, 2020 · 3 comments

Comments

@genmeblog
Copy link
Member

Looks like there are cases when creation of empty-symbol fails.

I found a case when (bra data.table nil something) throws an exception about missing value.

The root of a problem lays with the fact that empty symbol cannot be assigned to a value (http://adv-r.had.co.nz/Expressions.html#names). When we evaluate something it's always assigned to a value.

What seems to work perfectly is artificial RObject:

(def empty-symbol (clojisr.v1.robject/->RObject "" (:session (r 1)) nil ["name"]))

That means to we have to have special case for RObject recreation during session change. When we set code to nil they should stay untouched.

@genmeblog
Copy link
Member Author

For such created empty-symbol we need to fix printing (we can't evaluate it).

@genmeblog
Copy link
Member Author

Maybe even session should be nil and never be assigned to the session

@genmeblog
Copy link
Member Author

Since it require a session empty-symbol should be a function.

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

1 participant