You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,21 @@
4
4
* new Truffle interop converts `double` values to `int` values if they fit in the integer range
5
5
* see the changes in the [spec tests](https://github.com/oracle/fastr/commit/e08e2b19571479dddb6167d9a1d492a14cb4c7b2#diff-c842fa11097793b19bd410589c36af99)
6
6
7
+
Added missing R builtins and C APIa
8
+
9
+
* simple support for the weak reference API functions (`R_MakeWeakRef`, `R_MakeWeakRefC`, `R_WeakRefKey`, `R_WeakRefValue`)
10
+
*`Rf_i1mach`
11
+
*`gzcon` builtin for `url` connections, e.g., `load(url('protocol://path'))` should work now
// the value unwrapped from an RPromise can be primitive Java type, but now we know that we
176
+
// are dealing with primitive that is supposed to be treated as R vector
177
+
unwrapped = RRuntime.asAbstractVector(unwrapped);
178
+
if (!(unwrappedinstanceofTruffleObject)) {
160
179
throwRError.error(RError.NO_CALLER, Message.GENERIC, String.format("Printing value of type '%s' is not supported by the R language.", unwrapped.getClass().getSimpleName()));
Copy file name to clipboardExpand all lines: com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RError.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1032,7 +1032,8 @@ public enum Message {
1032
1032
"SET_ATTRIB: tag in the attributes pairlist must be a symbol. %s given. It is possible that the code intends to set the TAG after the call to SET_ATTRIB, but this is not supported in FastR."),
1033
1033
WRONG_ARGS_COMBINATION("Wrong arguments combination, please refer to ?%s for more details."),
1034
1034
COULD_NOT_FIND_LANGUAGE("Could not find language corresponding to extension '%s', you can specify the language id explicitly, please refer to ?%s for more details."),
1035
-
LANGUAGE_NOT_AVAILABLE("Language with id '%s' is not available. Did you start R with --polyglot?"),
1035
+
LANGUAGE_NOT_AVAILABLE("Language with id '%s' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?"),
1036
+
POLYGLOT_BINDING_NOT_AVAILABLE("Polyglot bindings are not accessible for this language. Use --polyglot or allowPolyglotAccess when building the context."),
1036
1037
NO_LANGUAGE_PROVIDED("No language id provided, please refer to ?%s for more details."),
1037
1038
NO_CODE_OR_PATH_PROVIDED("No code or path provided, please refer to ?%s for more details."),
1038
1039
LENGTH_OF_NULL_UNCHANGED("length of NULL cannot be changed"),
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("foo", "bar") :\n Language with id \'foo\' is not available. Did you start R with --polyglot?\n') } else { eval.polyglot('foo', 'bar') }
150346
+
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("foo", "bar") :\n Language with id \'foo\' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?\n') } else { eval.polyglot('foo', 'bar') }
150343
150347
Error in eval.polyglot("foo", "bar") :
150344
-
Language with id 'foo' is not available. Did you start R with --polyglot?
150348
+
Language with id 'foo' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("foo", , "bar") :\n Language with id \'foo\' is not available. Did you start R with --polyglot?\n') } else { eval.polyglot('foo',, 'bar') }
150351
+
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("foo", , "bar") :\n Language with id \'foo\' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?\n') } else { eval.polyglot('foo',, 'bar') }
150348
150352
Error in eval.polyglot("foo", , "bar") :
150349
-
Language with id 'foo' is not available. Did you start R with --polyglot?
150353
+
Language with id 'foo' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("nfi", "foo.bar") :\n Language with id \'nfi\' is not available. Did you start R with --polyglot?\n') } else { eval.polyglot('nfi', 'foo.bar') }
150356
+
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("nfi", "foo.bar") :\n Language with id \'nfi\' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?\n') } else { eval.polyglot('nfi', 'foo.bar') }
150353
150357
Error in eval.polyglot("nfi", "foo.bar") :
150354
-
Language with id 'nfi' is not available. Did you start R with --polyglot?
150358
+
Language with id 'nfi' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("nfi", , "foo.bar") :\n Language with id \'nfi\' is not available. Did you start R with --polyglot?\n') } else { eval.polyglot('nfi',,'foo.bar') }
150361
+
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("nfi", , "foo.bar") :\n Language with id \'nfi\' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?\n') } else { eval.polyglot('nfi',,'foo.bar') }
150358
150362
Error in eval.polyglot("nfi", , "foo.bar") :
150359
-
Language with id 'nfi' is not available. Did you start R with --polyglot?
150363
+
Language with id 'nfi' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot(, "bar") :\n No language id provided, please refer to ?eval.polyglot for more details.\n') } else { eval.polyglot(, 'bar') }
@@ -150378,9 +150382,9 @@ Error in eval.polyglot("js", "console.log(42)", "file.js") :
150378
150382
Wrong arguments combination, please refer to ?eval.polyglot for more details.
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("nonExistentLanguage", "code") :<<<NEWLINE>>> Language with id \'nonExistentLanguage\' is not available. Did you start R with --polyglot?\n') } else { eval.polyglot('nonExistentLanguage', 'code') }
150385
+
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("nonExistentLanguage", "code") :<<<NEWLINE>>> Language with id \'nonExistentLanguage\' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?\n') } else { eval.polyglot('nonExistentLanguage', 'code') }
150382
150386
Error in eval.polyglot("nonExistentLanguage", "code") :
150383
-
Language with id 'nonExistentLanguage' is not available. Did you start R with --polyglot?
150387
+
Language with id 'nonExistentLanguage' is not available. Did you start R with --polyglot or use allowPolyglotAccess when building the context?
#if (!any(R.version$engine == "FastR")) { cat('Error in eval.polyglot("someLanguage") :<<<NEWLINE>>> No code or path provided, please refer to ?eval.polyglot for more details.\n') } else { eval.polyglot('someLanguage') }
0 commit comments