Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ess-r-args-show doesnot work for R 2.14.2's rnorm function #3

Closed
ShuguangSun opened this issue Mar 25, 2012 · 6 comments
Closed

ess-r-args-show doesnot work for R 2.14.2's rnorm function #3

ShuguangSun opened this issue Mar 25, 2012 · 6 comments

Comments

@ShuguangSun
Copy link
Contributor

I'm using R 2.14.2 under windows xp.
I found that the args can show for 'mean' but not for rnorm.

I checked that the output from ess--funargs-command:
For 'rnorm':

  • + + + + + + + + + + + + + + + + + + + + Note: no visible global function definition for 'rnorm'
    Note: no visible global function definition for 'rnorm'
    [1] "stats" "n, mean=0, sd=1" "n=" "mean="
    [5] "sd="

For 'mean':

  • + + + + + + + + + + + + + + + + + + + + [1] "base" "x, trim=0, na.rm=FALSE, ..."
    [3] "x=" "...="
    [5] "trim=" "na.rm="

So I think the function ess-get-words-from-vector needs to be improved.

@vspinu
Copy link
Member

vspinu commented Mar 26, 2012

That's weird. I cannot reproduce on 2.14.2 nor in R-devel. How come that rnorm is not a visible function? It probably has something to do with your R settings. Do you have byte compiler on?

Also ess-r-args-show is not necessary anymore with the latest ESS, as eldoc is on by default. You can unbind it form "(".

@ShuguangSun
Copy link
Contributor Author

Yes, I have byte compiler on.

I'm using the latest version of ESS from the svn trunk. Do you mean ess-eldoc-function? ess-r-args-show will be involved from ess-function-arguments in ess-eldoc-function.

I don't know how to unbind it from "(". :-(

@ShuguangSun
Copy link
Contributor Author

The below message comes out because I used: enableJIT(3)
Note: no visible global function definition for 'rnorm'
Note: no visible global function definition for 'rnorm'

Maybe it looks more like an R' bug.

@vspinu
Copy link
Member

vspinu commented Mar 26, 2012

ShuguangSun reply@reply.github.com
on Mon, 26 Mar 2012 07:28:27 -0700 wrote:

The below message comes out because I used: enableJIT(3)
Note: no visible global function definition for 'rnorm'
Note: no visible global function definition for 'rnorm'

Maybe it looks more like an R' bug.

Yes, I've reported this issue last week, and Luke Tierney said he will
look into it. So it might have been solved already in the latest
R-devel.

I can implement an easy workaround (reset JIT locally), but prefer to
wait for the solution at R's side.

@ShuguangSun
Copy link
Contributor Author

Great! Thanks.

@vspinu
Copy link
Member

vspinu commented Mar 30, 2012

Ok, I've been waiting for it to be solved in R-devel. As the most recent devel still has it, I've implemented a workaround. Competition should work smoothly with the JIT now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants