Re: [R] package.skeleton only exports the first 73 lines of code

2012-03-05 Thread jeff_hawkes
Copying the code as text into the incomplete .r file worked, good idea. I still don't know why the export didn't work though. Thanks, Jeff -- View this message in context: http://r.789695.n4.nabble.com/package-skeleton-only-exports-the-first-73-lines-of-code-tp4447061p4447374.html Sent from the

[R] package.skeleton only exports the first 73 lines of code

2012-03-05 Thread jeff_hawkes
Hi all, apologies for the ignorance I'm about to describe: I'm trying to create a .r file for a function I've written (~300 lines of code). The function is called 'total' and I've entered the most simple package.skeleton: package.skeleton(name="test", list=c("total")) The export works fine (it

Re: [R] Non linear regression with complex equation

2012-02-28 Thread jeff_hawkes
Apologies for the phrasing of the question. I've sorted the problem (thanks Bert Gunter) by using the curly brackets {} as below (using a simplified version of my real model). I hope this helps someone else! Jeff --- > data Alpha ip X 1 0.7106967

[R] Non linear regression with complex equation

2012-02-27 Thread jeff_hawkes
Hi all, Is it possible to model a function where the unknown parameter appears both in the fitted equation AND in the determination of other parameters? E.g. y = a^2 + b/2 + k where a = 2/k and b = k^2 and the model needs to determine k? I know this is a very simple equation (its just an exa