[rkward-cvs] rkward/rkward/settings rksettingsmoduler.cpp, 1.16, 1.17
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Thu Sep 7 22:25:06 UTC 2006
Update of /cvsroot/rkward/rkward/rkward/settings
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30352
Modified Files:
rksettingsmoduler.cpp
Log Message:
Store the repositories in the format R expects, so it will not ask you to select the mirror over and over again
Index: rksettingsmoduler.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/settings/rksettingsmoduler.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** rksettingsmoduler.cpp 1 Sep 2006 15:06:35 -0000 1.16
--- rksettingsmoduler.cpp 7 Sep 2006 22:25:04 -0000 1.17
***************
*** 325,333 ****
// package repositories
! QString command = "options (repos=c(";
for (QStringList::const_iterator it = package_repositories.begin (); it != package_repositories.end (); ++it) {
if (it != package_repositories.begin ()) {
command.append (", ");
}
command.append ("\"" + *it + "\"");
}
--- 325,334 ----
// package repositories
! QString command = "options (repos=c (";
for (QStringList::const_iterator it = package_repositories.begin (); it != package_repositories.end (); ++it) {
if (it != package_repositories.begin ()) {
command.append (", ");
}
+ if (*it == "@CRAN@") command.append ("CRAN=");
command.append ("\"" + *it + "\"");
}
More information about the rkward-tracker
mailing list