5

Hi I am using R studio and the "knitHTML" button to convert my Rmd file into a html file. However, even thought the code runs fine, when using knitHTML it cannot find any of my local function created:

Error:Couldnot find function "xxx" calls:...withCallingHandlers->withVisible->eval->eval->corr

4
  • 1
    Do you use the cache function from knitr? if so you have to make sure that your functions are in a chunk that is always evaluated (in chunk options set cache=FALSE) and not just stored away in a cache. Commented Jun 22, 2015 at 12:53
  • @SarinaJ,i firgured out later using knit2html("source_file") function on command line is correctly using the local function rather than knit html tab. 'll try alternative you suggested n 'll let you know. Commented Jun 22, 2015 at 17:18
  • Was this ever solved? Commented Mar 31, 2018 at 8:50
  • Hi @Sarina ! Your suggestion did it for me. I think your's should be the answer to this question. Commented Oct 3, 2018 at 20:10

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.