Possible cause for object '.x' not found
error with tar_combine
#126
Closed
nicolaspayette
started this conversation in
General
Replies: 1 comment
-
The problem is that
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had a problem, for which I eventually found the cause, but it took me quite some time to figure it out, so I'm posting it here in case some else runs into the same issue.
Take the following example:
Created on 2022-11-30 with reprex v2.0.2
It fails with
object '.x' not found
. Can you see why?The culprit is the
tibble::lst
function, which I have used here to build the target list. It doesn't work with the slicing operator!!!.x
, presumably because it's doing something fancy under the hood.Using plain old base
list
instead fixes the issue:Created on 2022-11-30 with reprex v2.0.2
I'm happy to carry on from here, but if someone could explain why
lst
doesn't play well with!!!.x
, I'd be very curious.Beta Was this translation helpful? Give feedback.
All reactions