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

Krish Mahajan
  • 263
  • 3
  • 9
  • 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. – Sarina Jun 22 '15 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. – Krish Mahajan Jun 22 '15 at 17:18
  • Was this ever solved? – Shawn Mar 31 '18 at 08:50
  • Hi @Sarina ! Your suggestion did it for me. I think your's should be the answer to this question. – Juan Oct 03 '18 at 20:10

0 Answers0