Is it possible for Rmarkdown to load an R code?

Asked

Viewed 48 times

1

I already have a code ready in the R and now I’m learning the Rmarkdown.

My question is the following, is there any function that loads the R code in Rmarkdown that allows me to use the information without having to pass the code in the markdown Chunk?

  • 2

    Take a look at the function source().

  • 1

    You have several options. You have source() as they have said or you can see the read_chunk() if you have to run the code slowly.

  • Thank you @Willianvieira and Jorgemendes solved my problem!

  • 1

    @Willianvieira can post some response to help visitors in the future?

  • 1

    Or @Jorgemendes ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.