Quantcast

could not find function when compiling PDF

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

could not find function when compiling PDF

WuyiL
Hi all,

I could use the function when I am in the console. After I finish my assignment and compile them to the pdf, there was an error said, could not find the function XXX.

How come this happen? I am a new user to R. Thanks for everyone's help!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: could not find function when compiling PDF

WuyiL
it works in console, like this:
> mult.corr(X,Y)
$mult.corr
[1] 0.8382398

$p.mult
[1] 3.570699e-12

$partial.corr
[1]  0.18447499 -0.09837888  0.12007457

$p.partial
[1] 0.2094076 0.5058976 0.4162641

and it doesn't work when compiling.
Error:  chunk 3 (label = ques3)
Error in eval(expr, envir, enclos) : could not find function "mult.corr"
Execution halted
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: could not find function when compiling PDF

WuyiL
Could everyone help me?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: could not find function when compiling PDF

Uwe Ligges-3


On 14.04.2012 16:01, damiloveu wrote:
> Could everyone help me?

First of all, read the posting guide to this mailing list - and try to
avoid the Nabble interface!

Other issues:

1. Learn to ask your question precisely.

2. Learn to use a mailing list and quote the former messages in the thread.

3. I guess you forgot to load the package that contains the mult.corr()
function in the vignette (unstated) you are trying to build.

Uwe Ligges


>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/could-not-find-function-when-compiling-PDF-tp4555489p4557250.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Loading...