From: Uwe L. <li...@st...> - 2008-10-07 13:28:26
|
Gorjanc Gregor wrote: > ... >>> Unless you can provide a reasonable defaul for Mac, we can not help you! >> Umm. According to my notes I did. Or was that just a patch that I >> applied to my local copy that was not incorporated into the mainline. >> Can't find it right now. But, the default for all Mac applications is >> /Applications. That was in the workaround I sent. The reason is that >> that the Mac filesystem has permissions since it is just the Unix filesystem >> with a few bells and whistles. The /Applications directory has the >> permissions necessary to allow any user to install applications system-wide, >> a nice compromise between security and practicality. Other directories are >> secure so they are not an option (and for real Mac applications, they actually >> need to be in /Applications: this is probably more than you need or want to know). > > Thank you for this details. /Applications/WinBUGS14 then seems to be a good default > for Mac. Does anyone have any other opinion? Additionally, I wonder how can we > set this default. There is already a bunch of arguments for the bugs() functions. Should > we use > > bugs.directory=ifelse(???, "c:/Program Files/WinBUGS14/", "/Applications/WinBUGS14") > > or should we change the bugs.directory in the code conditionally on the OS? Uwe? If my opinion is of interest: Keep it as is and ask the user to provide the correct path (as we do already). On a German version of Windows (and corresponding default installation of WinBUGS), the correct path is "c:/Programme/WinBUGS14", hence the user has to change it there as well (we cannot introduce a guess for each possible combination of platform/OS/language anyway, I fear. We should rather stay with the default for most *Win*BUGS users: English local of more or less modern Windows OS. BTW, sorry for slow and short responses, I am quite busy and overwhelmed by too many incoming mails (R-2.8.0 is in beta state and package management for CRAN takes some time for the rest of this week, since we have some problems left). Best wishes, uwe >>> Btw. Why do you use setwd(".")? It does not make sense, since this is changing the working directory to >>> the current one. > >> I don't know. I got that from the Solaris example that you guys helped me with. >> I figured you guys know what you are doing. My mistake :o) > > Actually, you came up with the example and I (we) did not bother ;) What you need is > basically the same as example in ?bugs: > > model.file <- system.file(package="R2WinBUGS", "model", "schools.txt") > # Some example data (see ?schools for details): > data(schools) > schools > > J <- nrow(schools) > y <- schools$estimate > sigma.y <- schools$sd > data <- list ("J", "y", "sigma.y") > inits <- function(){ > list(theta=rnorm(J, 0, 100), mu.theta=rnorm(1, 0, 100), > sigma.theta=runif(1, 0, 100)) > } > parameters <- c("theta", "mu.theta", "sigma.theta") > schools.sim <- bugs(data, inits, parameters, model.file, > n.chains=3, n.iter=5000, > bugs.directory="/Applications/WinBUGS14", > clearWD=TRUE) > > Can you please test if this works for you? I would like to know if > wine variables are properly initialized. > > gg > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Bugs-r-devel mailing list > Bug...@li... > https://lists.sourceforge.net/lists/listinfo/bugs-r-devel |