Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Markdown could not find function [closed]

Tags:

r

r-markdown

Running Compile Notebook from RStudio.

I am getting:

Error: could not find function "SegNeigh"

"SegNeigh" being my own function, properly sourced; the script runs fine without R Markdown.

Any help appreciated.

like image 328
AlexGenkin Avatar asked Aug 30 '26 01:08

AlexGenkin


1 Answers

In order for the rmarkdown doc to find the function, you either need to define SegNeigh in the same document or place it in another file and source that file explicitly

like image 155
DeanAttali Avatar answered Sep 01 '26 17:09

DeanAttali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!