Please make it clearer for us!
For compactness sake I assume your are working on package mypackage with a function myfunction.
I am developing a package. My functions work fine standalone.
I understand that to mean that after Session | Restart R (Ctrl+Shift+F10) the line
mypackage::myfunction(any parameters)
does what you would like it to do? If not, there could be an error in your package
But when I use them in my Latex document in code chunks and use "Compile PDF", it gives the error "could not find function.."
I assume that the function that is not found, belongs to your package.
Create a small example of your document: one that compiles correctly without your function but fails when you insert your function. Show both the document and the error messages in your reply. (Enclose the document in four backticks /backquotes ( ```` ) to show the backticks in your document.)
Also, when I run code chunks on the Latex document, it works fine. I want to get some sample runs of my functions on the pdf document.
I am sure what you mean by this.
Please let us know. And if you solved the problem in the meantime, indicate this for this thread.