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
Could not find function "." and invalid closure when looking up for columns #2023
Comments
What happens if you run |
@MichaelChirico Well, it works actually...
Can you please explain? I see it is calling the internal function |
be sure to check that data table is loaded (i.e. it's properly imported)...
that's the only reason I know if why method dispatch might fail.
I guess check search() before that line?
…On Feb 14, 2017 2:12 AM, "Francesco Grossetti" ***@***.***> wrote:
@MichaelChirico <https://github.com/MichaelChirico> Well, it works
actually...
Browse[2]> data.table:::`[.data.table`(locations, j = .(start, end))
## start end
## 1: 5 7
## 2: 9 10
## 3: 21 22
Can you please explain? I see it is calling the internal function
`[.data.table`] but why the usual way is broken?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2023 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQQdZ7JbV7XmQzAI5R9Ia_FmFT0f0xfks5rcVPjgaJpZM4L_uOp>
.
|
So I think I found the issue here. It is related with the options Normal console mode
Debug Mode
Most importantly, it got barely impossible to create a new column by reference. See below.
Maybe I am not getting it right, but I have already developed a package based on |
Update: I confirm that that problem is given by the check within the
My function crashes when it finds the operator |
@contefranz could you confirm that issue persist in R console and is not related to IDE which you use to build and reload package? |
@jangorecki I just tested out and everything seems ok. As far as I can tell I think the problem was related with the Thanks |
@contefranz sounds familiar, I am using RStudio a lot but build and install I always do from shell thus no further insight really. |
Ok then. I close the issue since everything seems working now. |
I am developing a package which imports
data.table
. I am currently using v1.10.4 on CRAN and I get strange behaviour when I want to access to columns within adata.table
. The weird thing here is that it happens when I am in the debug mode due to package testing. Here is an example coming from my debug mode (I understand it is not reproducible...). Thedata.table
is calledlocations
:Below you can find info about my R session.
Hope this helped!
Thanks in advance
The text was updated successfully, but these errors were encountered: