mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
tweaks to R example generator code
This commit is contained in:
@@ -19,6 +19,7 @@ Target Operating Systems
|
||||
:ref:`VB.net <VBdotNet>` windows only Wrapper is SWIG based
|
||||
:ref:`MATLAB <MATLAB>` linux, OSX, win Wrapper is SWIG based
|
||||
:ref:`Java <Java>` linux, OSX, win Wrapper is SWIG based
|
||||
:ref:`R <R>` linux, OSX, win Wrapper is SWIG based
|
||||
:ref:`Scilab <Scilab>` linux, OSX, win Wrapper is SWIG based (experimental)
|
||||
:ref:`Julia <Julia>` linux, OSX, win
|
||||
`Modelica <https://github.com/modelica/ExternalMedia>`_ linux, OSX, win
|
||||
@@ -126,4 +127,5 @@ and explicitly typing "agree" before closing. Then you can use the compiler from
|
||||
StaticLibrary/index.rst
|
||||
SharedLibrary/index.rst
|
||||
DelphiLazarus/index.rst
|
||||
VB.net/index.rst
|
||||
VB.net/index.rst
|
||||
R/index.rst
|
||||
@@ -756,7 +756,7 @@ class R(BaseParser):
|
||||
l = self.map_function(d['function']) + '(' + ', '.join(self.parse_arguments(d['arguments'])) + ')'
|
||||
elif d['type'] == 'print':
|
||||
args = self.parse_arguments(d['arguments'])
|
||||
l = 'print(cat(' + ', \' \', '.join(args) + '))'
|
||||
l = 'writeLines(paste(' + ', \' \', '.join(args) + '))'
|
||||
elif d['type'] == 'vector':
|
||||
args = self.parse_arguments(d['arguments'])
|
||||
l = '[' + ', '.join(args) + ']'
|
||||
@@ -786,7 +786,7 @@ class R(BaseParser):
|
||||
return l
|
||||
|
||||
def header(self):
|
||||
return 'dyn.load(paste("CoolProp", .Platform$dynlib.ext, sep=""))\nsource("CoolProp.R")\ncacheMetaData(1)\nPropsSI("T","P",101325,"Q",0,"Water")\n'
|
||||
return 'dyn.load(paste("CoolProp", .Platform$dynlib.ext, sep=""))\nsource("CoolProp.R")\ncacheMetaData(1)\n'
|
||||
|
||||
class MATLAB(BaseParser):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user