R Code succeeded silently but no objects were created

Hi, for some reason, my Posit Cloud setting suppresses errors or warnings. I think is is different from R's defaults since nothing is printed at all but I think the assignment succeeded silently. Please see the code I ran recently. Thanks for your support.

> mtcars_with_mean_records <- mtcars %>%

  • group_by( cyl ) %>%
  • summarize(wt = mean(wt, na.rm = TRUE)) %>%
  • mutate(dtype='AVERAGE') %>%
  • bind_rows( mtcars) %>%
  • arrange(cyl)

Hello, the behavior you are seeing is likely related to how commands are processed in the R console, rather than a general suppression of errors.

The • character in your post is the continuation prompt used by the RStudio console. It indicates that R is waiting for more input to complete the current expression. This typically happens if you have an unclosed parenthesis or, very commonly with pipes, if you have a trailing pipe operator (%>%) at the end of your command chain.

For instance, if you ran your code with an extra pipe at the end:

... %>%
  arrange(cyl) %>%

... and then pressed Enter, R would show the • prompt and wait for the next command. If you then pressed Enter again on a blank line or started a new command, the original, incomplete assignment to mtcars_with_mean_records would be cancelled without any warning or error message. This would explain why the code seems to run silently but no object is created.

Your code snippet is logically complete as written. To execute it successfully, ensure there is no pipe operator after the final arrange(cyl) call. After running the assignment, you can confirm the object exists by printing it:

mtcars_with_mean_records