-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
code shouldn't be stored as character #181
Comments
Hey @pawelru is this still relevant? Should we close? |
There are two aspects in your response
I have a lot of doubts for a code dependency feature as a whole. First of all, it cannot be correctly done simply because of expressions with side effects. This would require some additional input such as comments. Here, comments looks to be a good way of providing this additional information but again, I really doubt that it's actually used as input code is usually quite lengthy and it's a lot of work. |
What do you mean? All side-effects that can not be connected to objects will have a special tag in a comments in the line where the side-effect is created. For sure this is hard challenge to tackle, but this is only a data preparations part so I would not expect weird code being provided. expression({some_side_effect_on_all_objects}) # @linksto object_name_1 object_name_2 with the above you can connect a line to an object.
I don't think I understand this part |
I am on the wagon of scrapping the whole code dependency feature. I don't think it adds much (less code in Show R Code, but that's really it) and is, as I recently found out (#233), incredibly brittle, in the sense that I could break it in a million ways without even trying. |
@kpagacz |
In R, there are more appropriate structures to store the code but we keep storing this as a character.
This has some indirect negative consequences of unnecessary type conversions. Right now, if I call
quenv() |> within({<code>})
then my<code>
is converted to character and then back again to the code. Such behaviour is currently being adapted inteal.data
(eval_code.teal_data_module
) so if changed - please change there as well.The text was updated successfully, but these errors were encountered: