错误“mutate()”:!计算时出现问题。无效的版本规范”

发布于 2025-01-16 07:51:45 字数 847 浏览 2 评论 0原文

我正在运行以下一段工作​​正常的代码:

df_New <- df %>% 
+     mutate(column1 = map(column1, ~ py_eval(.x) %>% 
+                                        bind_rows))  %>% 
+     unnest(column1)

但是,当稍后返回时,我在尝试重新运行代码时收到此错误:

Error in `mutate()`:
! Problem while computing `column1 = map(column1,
  ~py_eval(.x) %>% bind_rows)`.
Caused by error:
! invalid version specification ‘'\\.\tm1174\w2k'’, ‘..EXE was started with the above path as the current directory.’, ‘. paths are not supported.  Defaulting to Windows directory.’
Run `rlang::last_error()` to see where the error occurred.
Warning message:
Problem while computing `column1 = map(column1, ~py_eval(.x) %>% bind_rows)`.
i the condition has length > 1 and only the first element will be used 

我不知道发生了什么变化。有人能指出我正确的方向吗?

I was running the following piece of code that was working fine:

df_New <- df %>% 
+     mutate(column1 = map(column1, ~ py_eval(.x) %>% 
+                                        bind_rows))  %>% 
+     unnest(column1)

however when returning at a later date I received this error when trying to re-run the code:

Error in `mutate()`:
! Problem while computing `column1 = map(column1,
  ~py_eval(.x) %>% bind_rows)`.
Caused by error:
! invalid version specification ‘'\\.\tm1174\w2k'’, ‘..EXE was started with the above path as the current directory.’, ‘. paths are not supported.  Defaulting to Windows directory.’
Run `rlang::last_error()` to see where the error occurred.
Warning message:
Problem while computing `column1 = map(column1, ~py_eval(.x) %>% bind_rows)`.
i the condition has length > 1 and only the first element will be used 

I have no Idea what has changed. Can anyone point me in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文