Hofert,

I'm not sure what is going on.  I tried pnorm and it worked for me.  The
message I got was

Namespace: `stats'

before expanding, which gives me an idea of why it isn't working.

In a R process, could you type "pnorm"  When I do this, I get

> pnorm
function (q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)
.Internal(pnorm(q, mean, sd, lower.tail, log.p))
<environment: namespace:stats>

Which allows R-autoyas to guess this function is in a prebuilt package.

Could you tell me what you get?

In the interim, you could customize
`r-autoyas-expand-package-functions-only' to nil. This should allow
functions to expand even if they are not a bulit-in packages.  Tell me if
that works for you.

Matt.

On Wed, Sep 28, 2011 at 2:54 PM, Hofert Jan Marius <
marius.hofert@math.ethz.ch> wrote:

> Dear all,
>
> I work with Aquamacs 2.3a under Mac OS X 10.6.8.
> I would like to use r-autoyas and put in the following lines [and nothing
> more] in Preferences.el:
>
> ;; r-autoyas; see http://www.svenhartenstein.de/Software/R-autoyas
> (require 'r-autoyas)
> (load-file "~/Library/Preferences/Aquamacs Emacs/r-autoyas/r-autoyas.el")
>
> After saving and restarting Aquamacs, I open an .R file and an R process.
> By typing "pnorm" and hitting TAB, this should expand the arguments of the
> function pnorm. However, I obtain "Namespace: `nil'" and nothing happens.
> What is wrong?
>
> I can use C-h v r-autoyas- + TAB and obtain:
>
> Possible completions are:
> r-autoyas-auto-expand-with-paren
> r-autoyas-cache
> r-autoyas-echo-inject-commands
> r-autoyas-expand-package-functions-only
> r-autoyas-ignored-functions
> r-autoyas-lisp-based-dot-replacement
> r-autoyas-number-of-commas-before-return
> r-autoyas-paren-skip-autopair
> r-autoyas-preloaded-packages
> r-autoyas-r-based-dot-replacement
> r-autoyas-remove-explicit-assignments
> r-autoyas-save-expression-to-memory
> r-autoyas-use-lisp-based-dot-replacement
> r-autoyas-use-r-based-dot-replacement
> r-autoyas-wrap-on-exit
>
> This should mean that r-autoyas is found. But why is it not working? Any
> ideas?
>
> Marius
>
>
>
>
> ETH Zurich
> Dr. Marius Hofert
> RiskLab, Department of Mathematics
> HG E 65.2
> Rämistrasse 101
> 8092 Zurich
> Switzerland
>
> Phone +41 44 632 2423
> marius.hofert@math.ethz.ch
> http://www.math.ethz.ch/~hofertj
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

