[Soiltexture-commits] r58 - pkg/soiltexture/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Nov 6 10:23:59 CET 2011


Author: jmoeys
Date: 2011-11-06 10:23:58 +0100 (Sun, 06 Nov 2011)
New Revision: 58

Modified:
   pkg/soiltexture/R/onAttach.R
Log:
New fix for Mac OSX

Modified: pkg/soiltexture/R/onAttach.R
===================================================================
--- pkg/soiltexture/R/onAttach.R	2011-11-01 10:15:00 UTC (rev 57)
+++ pkg/soiltexture/R/onAttach.R	2011-11-06 09:23:58 UTC (rev 58)
@@ -5,7 +5,7 @@
     cat( "'", pkgname, "' loaded.\n" ) 
     #
     # Setup the polish triangle and language setting
-    if( Sys.info()["sysname"] != "Mac" )
+    if( !(tolower(Sys.info()["sysname"]) %in% c("mac","darwin")) )
     {   #
         source( system.file( "polish_triangle.r", package = pkgname ), encoding = "UTF-8" ) 
         source( system.file( "polish_language.r", package = pkgname ), encoding = "UTF-8" ) 



More information about the Soiltexture-commits mailing list