replaced plyr occurences with data.table
This is in reference to issue #165 . Replaced all given instances of plyr with data.table. Please let me know if any changes are to be made
this looks like a reasonable start. let's see if it works...
@tdhock I have removed dplyr arrange function and replaced it with data.table::setorder. Is this okay?
@tdhock I have made the requested changes, please review and let me know if further changes are required.
@tdhock is this ok? please let me know if more changes are required.
I've made the requested changes. @tdhock
please remove plyr from DESCRIPTION so we can see if checks pass ok
please remove plyr from DESCRIPTION so we can see if checks pass ok
Done.
@tdhock is there anything that needs to be done regarding this issue further?
please click Resolve conversation for the items you believe are already fixed
I'm seeing
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-renderer1-hjust-text-anchor.R:48:3'): (code run outside of `test_that()`) ──
Error in `.checkTypos(e, names_x)`: Object 'i' not found. Perhaps you intended [x, y, z]
Backtrace:
▆
1. ├─...[] at test-renderer1-hjust-text-anchor.R:47:1
2. ├─data.table:::`[.data.table`(...) at test-renderer1-hjust-text-anchor.R:47:1
3. ├─.SD[iteration <= i] at test-renderer1-hjust-text-anchor.R:48:3
4. └─data.table:::`[.data.table`(.SD, iteration <= i) at test-renderer1-hjust-text-anchor.R:48:3
5. └─base::tryCatch(...)
6. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
7. └─base (local) tryCatchOne(...)
8. └─value[[3L]](cond)
9. └─data.table:::.checkTypos(e, names_x)
10. └─data.table:::stopf(...)
11. └─data.table:::raise_condition(...)
hi @tdhock I have resolved the error that was coming in renderer tests, but I am facing some errors in
helper-plot-data.r in the function cdata while replacing plyr with data.table
the error is as follows:
Error in ``[.data.table(df, scales == "x"): i evaluates to a logical vector length 12 but there are 2 rows. Recycling of logical i is no longer allowed as it hides more bugs than is worth the rare convenience. Explicitly use rep(...,length=.N) if you really need to recycle.
Can you please help me with correcting the code for helper-plot-data.r - cdata() function?
hi @tdhock I have resolved the error that was coming in renderer tests, but I am facing some errors in
helper-plot-data.rin the function cdata while replacing plyr with data.table the error is as follows:Error in[.data.table ``(df, scales == "x"): i evaluates to a logical vector length 12 but there are 2 rows. Recycling of logical i is no longer allowed as it hides more bugs than is worth the rare convenience. Explicitly use rep(...,length=.N) if you really need to recycle.Can you please help me with correcting the code for helper-plot-data.r - cdata() function?
hi @tdhock can you please reply to this query?
I'm not sure
The compiler tests are passing (except the gh permissions one because i have pushed via my fork not directly) But I am not getting why the renderer tests are being stuck on the file "variable-value" . I run the tests at my end and the test is passing individually for variable-value but getting stuck when all renderer tests are run together. This was not happening earlier (in the first few commits).
I tested everything again in another branch and found out that the updated in the renderer test files might be the problem because without those updates and in different branch , all the tests are passing successfully (not getting stuck). I will try creating a new PR with another branch for this and see if the tests pass there.
I have created a new PR for this, hence I am closing this one.