Run code stored in Tibble


I am new to R.

I have a list of R codes saved in an Excel sheet (Sheet1), cells F8:F100.
After extracting the code in F8:F100 into a tibble. I would like to run each of the code. How do I do so? Thank you


read_excel('C:/Users/Desktop/test.xlsm', sheet='Sheet1', range = 'F8:F100',col_names=FALSE)

Example of F8
out<-extract_tables('C:/Users/Desktop/file1.pdf', method='stream',output='csv',outdir='C:/Users/Desktop/folder')

Hi @Skye,

Would it be possible for you to share your Excel sheet with a link? Or provide some sort of data that looks like the sheet you have? This will make the process of helping you much easier.

tibble(code = c("print(1-3)",
                "print(2*3)")) %>%
  pull(code) %>%
  rlang::parse_exprs() %>%

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.