使用R中的Tidycode分析数据帧中的代码

使用R中的Tidycode分析数据帧中的代码,r,R,我试图获取存储在dataframe内容列单元格中的R代码,并分析应用Tidycode包所使用的函数。但是,在应用unnest_calls()函数之前,我首先需要将数据转换为Matahari TIBLE 以下是数据: data <- read.csv("https://github.com/making-data-science-count/TidyTuesday-Analysis/raw/master/db-tmp/cleaned%20database.csv") 数据 tmp<-

我试图获取存储在dataframe内容列单元格中的R代码,并分析应用Tidycode包所使用的函数。但是,在应用unnest_calls()函数之前,我首先需要将数据转换为Matahari TIBLE

以下是数据:

data <- read.csv("https://github.com/making-data-science-count/TidyTuesday-Analysis/raw/master/db-tmp/cleaned%20database.csv")
数据
tmp<-data$content2[1])
writeLines(tmp, "tmp.R") #I've also used save() and write()

rfile<-tidycode::read_rfiles("tmp.R")