Skip to content

Commit f0cb706

Browse files
committed
[processing] exclude commented R libraries when generating dependencies list (fix #14143)
1 parent 47549eb commit f0cb706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/r/RUtils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def checkRIsInstalled(ignoreRegistrySettings=False):
201201

202202
@staticmethod
203203
def getRequiredPackages(code):
204-
regex = re.compile('library\("?(.*?)"?\)')
204+
regex = re.compile('[^#]library\("?(.*?)"?\)')
205205
return regex.findall(code)
206206

207207
@staticmethod

0 commit comments

Comments
 (0)