[Distr-commits] r1323 - pkg/utils

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Mar 12 09:19:37 CET 2019


Author: ruckdeschel
Date: 2019-03-12 09:19:37 +0100 (Tue, 12 Mar 2019)
New Revision: 1323

Modified:
   pkg/utils/DESCRIPTIONutils.R
Log:
[DESCRIPTIONutils] changeDescription when changing required R versions finds both expressions R (>=..) and R(>=..) 

Modified: pkg/utils/DESCRIPTIONutils.R
===================================================================
--- pkg/utils/DESCRIPTIONutils.R	2019-03-12 07:55:42 UTC (rev 1322)
+++ pkg/utils/DESCRIPTIONutils.R	2019-03-12 08:19:37 UTC (rev 1323)
@@ -46,7 +46,7 @@
 
 
 replaceReqRversion <- function(text,version){
-     if(!is.na(version)) gsub("^R\\([^\\)]+\\)",version,text)
+     if(!is.na(version)) gsub("^R[ ]+\\([^\\)]+\\)",version,text)
   }
 
 ## needs: getRevNr() in getRevNr.R in  utils/ e.g.



More information about the Distr-commits mailing list