Thanks @fcas80! Its still the same issue and gives me the same following error.
Error: Can't convert to .
Run rlang::last_error() to see where the error occurred.
And when I check error with rlang, I see the following details:
<error/vctrs_error_incompatible_type>
Can't convert to .
Backtrace:
- (function (x, start, len, ...) ...
- vctrs::vec_default_cast(...)
- vctrs::stop_incompatible_cast(...)
- vctrs::stop_incompatible_type(...)
- vctrs:::stop_incompatible(...)
- vctrs:::stop_vctrs(...)
Run rlang::last_trace() to see the full context.