You are here

help with basic 1st steps after install

2 posts / 0 new
Last post
jnui's picture
Offline
Joined: 01/02/2010 - 06:31
help with basic 1st steps after install

I have a mac with snow leopard, I downloaded R-2.10.1.pkg and installed ok.
I think I have done something wrong next.
I am not sure I have everything running correctly.
I think the library installed correctly but I don't know how to check that.

I opened R console, and pasted source('https://openmx.ssri.psu.edu/getOpenMx.R')
the file downloaded and I got this message
The downloaded packages are in
/var/folders/-9/-9+HhN1kGMO4-yHl4DD1Bk+++TI/-Tmp-//RtmpaaVukg/downloaded_packages

I ran the short example on the quickstart page
addone <- function(number) {
+ number <- number + 1
+ return(number)
+ }

and it seems to be printing out ok. here is what is prints.
> avariable <- 5
>
> print(addone(avariable))
[1] 6

does this short example mean my install is correct? I only ask because I tried a more complex example and got errors.
I first want to ensure that I have a good start before I start tweaking further.

thanks

and it seems to be printing out ok. here is what is prints.

mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
The first example on the

The first example on the quickstart page is an introduction to R. It does not use any features that are specific to the OpenMx library. What was the more complex example that resulted in an error? This information will help us to diagnose the problem.