-
Notifications
You must be signed in to change notification settings - Fork 49
/
errors-and-ideas.Rmd
47 lines (33 loc) · 1.33 KB
/
errors-and-ideas.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: "Materials for Class"
author: "Marc Kaufmann"
date: "August 29, 2019"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
Error in library(reticulate) : there is no package called 'reticulate'
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> library
Execution halted
You can even run python scripts in RMarkdown if you have everything necessary installed on your computer.
```{r}
knitr::opts_chunk$set(engine.path = list(python = '/usr/bin/python'))
install.packages("reticulate")
library(reticulate)
```
And then do
```{python}
def square(x):
return x*x
square(11)
```
day1 <- day1 %>%
select(day1, c(X = answer_1, Xprime = answer_2, Y = answer_3, Yprime = answer_4)) %>%
mutate(deltaX = Xprime - X, deltaY = Yprime - Y) %>%
mutate(deltadelta = deltaY - deltaX)
Beautiful error:
Error: `day1` must evaluate to column positions or names, not a list Call `rlang::last_error()` to see a backtrace
When passing a dataframe with one column into t.test, I get: "Error: Must use a vector in `[`, not an object of class matrix. Call `rlang::last_error()` to see a backtrace"
Did you define a new function in another chunk? Did you forget to run the other chunk? Welcome to
"Error in function_list[[i]](value) : could not find function "get_batch2_later_sessions""