willcrichton / r-autota

A tool to make R error messages easier to understand
Other
6 stars 2 forks source link

Crashed with map() #10

Closed emmaggg closed 4 years ago

emmaggg commented 4 years ago

Feedback from Psych stats teacher: "I ran i with map() omitting the ~ in the function argument, and that basically crashed my r session. "

willcrichton commented 4 years ago

if it's possible, let's at least get a screenshot from the person in these instances, hard to debug otherwise

emmaggg commented 4 years ago

Following up.

emmaggg commented 4 years ago

below is the console output for running

library("tidyverse")
map(1:2, mean(.x))

the error is that there is tilde missing, it should have been specified as map(1:2, ~ mean(.x))

Error in mean(.x) : object '.x' not found
Run `rlang::last_error()` to see where the error occurred.
Registered S3 methods overwritten by 'lme4':
  method                          from
  cooks.distance.influence.merMod car 
  influence.merMod                car 
  dfbeta.influence.merMod         car 
  dfbetas.influence.merMod        car 
Registered S3 method overwritten by 'xts':
  method     from
  as.zoo.xts zoo 
Registered S3 methods overwritten by 'broom.mixed':
  method         from 
  augment.lme    broom
  augment.merMod broom
  glance.lme     broom
  glance.merMod  broom
  glance.stanreg broom
  tidy.brmsfit   broom
  tidy.gamlss    broom
  tidy.lme       broom
  tidy.merMod    broom
  tidy.rjags     broom
  tidy.stanfit   broom
  tidy.stanreg   broom
Registered S3 method overwritten by 'geojsonlint':
  method         from 
  print.location dplyr
Registered S3 method overwritten by 'GGally':
  method from   
  +.gg   ggplot2
Registered S3 method overwritten by 'ggedit':
  method from  
  +.gg   GGally
Registered S3 methods overwritten by 'ggtern':
  method           from   
  +.gg             ggedit 
  grid.draw.ggplot ggplot2
  plot.ggplot      ggplot2
  print.ggplot     ggplot2
Registered S3 method overwritten by 'googlesheets':
  method           from       
  print.drive_user googledrive
Registered S3 method overwritten by 'mosaic':
  method                           from   
  fortify.SpatialPolygonsDataFrame ggplot2
Registered S3 method overwritten by 'pryr':
  method      from
  print.bytes Rcpp
Registered S3 method overwritten by 'quanteda':
  method            from   
  summary.character network
Registered S3 methods overwritten by 'RcppEigen':
  method               from         
  predict.fastLm       RcppArmadillo
  print.fastLm         RcppArmadillo
  summary.fastLm       RcppArmadillo
  print.summary.fastLm RcppArmadillo
using webppl version: v0.9.15 /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rwebppl/js/webppl
Registered S3 method overwritten by 'seriation':
  method         from 
  reorder.hclust gclus
Registered S3 method overwritten by 'tree':
  method     from
  print.tree cli 
Registered S3 methods overwritten by 'vegan':
  method         from      
  reorder.hclust seriation 
  rev.hclust     dendextend
Registered S3 method overwritten by 'WRS2':
  method       from
  print.ancova HH  
Error during wrapup: argument is of length zero
willcrichton commented 4 years ago

I tried running this on my own RStudio and had no issues.

Screen Shot 2020-03-01 at 10 47 03 PM

Can you make sure they're on the latest autota?

willcrichton commented 4 years ago

I believe this has been fixed?