lcolladotor / jhustatcomputing

Course website for Johns Hopkins BSPH Statistical Computing (Biostatistics 140.776)
https://lcolladotor.github.io/jhustatcomputing/
7 stars 8 forks source link

reprex exercise #7

Open lcolladotor opened 1 month ago

lcolladotor commented 1 month ago

Similar to #2, but for 2024.

-- 0 --

stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-20 with reprex v2.1.1

XindiShan commented 1 month ago
stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-28 with reprex v2.1.1

davidluoshy commented 1 month ago
stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-28 with reprex v2.1.1

lcolladotor commented 1 month ago
stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-29 with reprex v2.1.1

lcolladotor commented 1 month ago
devel > stop("This R error is weird")
Error: This R error is weird
ANUMMINHAS2 commented 1 month ago

stop("This R error is weird") Error: This R error is weird

jmart305 commented 1 month ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

leihm8 commented 1 month ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

manamiueshima commented 1 month ago
stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-29 with reprex v2.1.1

kkurland commented 1 month ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-29 with reprex v2.1.1

HridikaS commented 1 month ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-08-30 with reprex v2.1.1

yinuotu commented 1 month ago
stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-09-01 with reprex v2.1.1

jgrant48 commented 3 weeks ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

yunyi-ru commented 3 weeks ago
reprex::reprex()
#> ℹ Non-interactive session, setting `html_preview = FALSE`.
#> CLIPR_ALLOW has not been set, so clipr will not run interactively
#> Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(), : EXPR must be a length 1 vector

Created on 2024-09-05 with reprex v2.1.1

Somehow my reprex::reprex() is giving a strange answer rather than the correct one, but after I tried a few times it gives the correct answer (shown below). Does anybody know what had happened?

stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-09-05 with reprex v2.1.1

DB-555 commented 3 weeks ago

reprex::reprex()

> ℹ Non-interactive session, setting html_preview = FALSE.

> CLIPR_ALLOW has not been set, so clipr will not run interactively

> Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(), : EXPR must be a length 1 vector

Created on 2024-09-07 with reprex v2.1.1

kgordon1 commented 3 weeks ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

kgordon1 commented 3 weeks ago
reprex::reprex()
#> ℹ Non-interactive session, setting `html_preview = FALSE`.
#> CLIPR_ALLOW has not been set, so clipr will not run interactively
#> Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(), : EXPR must be a length 1 vector

Created on 2024-09-05 with reprex v2.1.1

Somehow my reprex::reprex() is giving a strange answer rather than the correct one, but after I tried a few times it gives the correct answer (shown below). Does anybody know what had happened?

stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-09-05 with reprex v2.1.1

I had this same error the first time I tried the exercise. I realized that the Clipboard was storing reprex::reprex() rather than stop("This R error is weird").

nlanglo3 commented 3 weeks ago

stop("This R error is weird")

> Error in eval(expr, envir, enclos): This R error is weird

lcolladotor commented 3 weeks ago

Thanks @kgordon1 for answering @yunyi-ru's question!

Best, Leo

yunyi-ru commented 3 weeks ago
reprex::reprex()
#> ℹ Non-interactive session, setting `html_preview = FALSE`.
#> CLIPR_ALLOW has not been set, so clipr will not run interactively
#> Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(), : EXPR must be a length 1 vector

Created on 2024-09-05 with reprex v2.1.1

Somehow my reprex::reprex() is giving a strange answer rather than the correct one, but after I tried a few times it gives the correct answer (shown below). Does anybody know what had happened?

stop("This R error is weird")
#> Error in eval(expr, envir, enclos): This R error is weird

Created on 2024-09-05 with reprex v2.1.1

I had this same error the first time I tried the exercise. I realized that the Clipboard was storing reprex::reprex() rather than stop("This R error is weird").

Got it! I've tried restarting the R session to make it work. Thanks for your answer!

Dtomar3 commented 2 weeks ago

reprex::reprex()

> ℹ Non-interactive session, setting html_preview = FALSE.

> CLIPR_ALLOW has not been set, so clipr will not run interactively

> Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(), : EXPR must be a length 1 vector

Created on 2024-09-11 with reprex v2.1.1