Skip to content

Commit

Permalink
version 1.53
Browse files Browse the repository at this point in the history
  • Loading branch information
Jochen Knaus authored and gaborcsardi committed Aug 22, 2008
1 parent 7d99bf6 commit 82ba53f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
@@ -1,8 +1,8 @@
Package: snowfall
Type: Package
Title: Easier cluster computing (based on snow).
Version: 1.52
Date: 2008-07-01
Version: 1.53
Date: 2008-08-22
Author: Jochen Knaus
Maintainer: Jochen Knaus <jo@imbi.uni-freiburg.de>
Description: Toplevel wrapper around snow for easier development of
Expand All @@ -13,4 +13,4 @@ Description: Toplevel wrapper around snow for easier development of
Suggests: snow, Rmpi
Depends:
License: GPL
Packaged: Tue Jul 1 12:37:46 2008; jo
Packaged: Fri Aug 22 11:18:50 2008; jo
13 changes: 11 additions & 2 deletions R/init.R
Expand Up @@ -243,9 +243,18 @@ sfInit <- function( parallel=NULL,
return( invisible( TRUE ) )
}

##*****************************************************************************
## Check if sfInit() was called. This function is called before any function
## which need initialisation of the cluster.
##
## Previous it stops with error, now it calls sfInit() without parameters,
## so sfInit() does not have to be called explicitely.
##*****************************************************************************
sfCheck <- function() {
if( !exists( ".sfOption" ) || !.sfOption$init )
stop( "Calling to snowfall function is only allowed AFTER calling sfInit()!" )
if( !exists( ".sfOption" ) || !.sfOption$init ) {
message( "Calling a snowfall function without calling 'sfInit' first.\n'sfInit()' is called now." )
return( invisible( sfInit() ) )
}

return( invisible( TRUE ) )
}
Expand Down
Binary file modified inst/doc/snowfall.pdf
Binary file not shown.

0 comments on commit 82ba53f

Please sign in to comment.