Native Pipe Placeholder Warning in Snippet

Hi all,

I'm using RStudio (2023.12.1) to create RMarkdown documents. All of a sudden, after 10 years and no change I can put discern, when running code in the the {r} snippets in the window I'm now getting these errors at seemingly random times - sometimes multiple when running one snippet:

Error in base::suppressWarnings(base::try("_", silent = TRUE)) : 
  invalid use of pipe placeholder (<input>:1:0)

It looks like it's trying to use the native pipe placeholder, but the code I'm running isn't using this. Many different pieces of code throw the error, but here's as minimal an example as I could find, run from a fresh session:

library(jsonlite)
bgp <- fromJSON('data/full_table_5_transform_day.zip')

I've upgraded RStudio, I've removed all of the .local/share/rstudio and .config/rstudio/ directories, and I've removed and reinstalled all packages.

2 Likes

Here's an example of the traceback, which doesn't make sense to me:

7.
which(!isemptylist)
6.
FUN(X[[i]], ...)
5.
lapply(columnlist, simplify, simplifyVector = TRUE, simplifyDataFrame = TRUE,
simplifyMatrix = FALSE, simplifySubMatrix = simplifyMatrix,
flatten = flatten)
4.
simplifyDataFrame(x, flatten = flatten, simplifyMatrix = simplifySubMatrix)
3.
simplify(obj, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame,
simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
2.
parse_and_simplify(txt = txt, simplifyVector = simplifyVector,
simplifyDataFrame = simplifyDataFrame, simplifyMatrix = simplifyMatrix,
flatten = flatten, ...)
1.
fromJSON("data/full_table_5_transform_day.zip")
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.