Skip to content
Snippets Groups Projects
Commit b8837f1e authored by Tomas Stupka's avatar Tomas Stupka Committed by Danilo Ansaloni
Browse files

add help pages for eval.polyglot, export, import

(cherry picked from commit 3558d2ae)
parent 3a193290
No related branches found
No related tags found
No related merge requests found
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fastrInteropt.R
\name{eval.polyglot}
\alias{eval.polyglot}
\title{Evaluates expressions in the language with the given id. Either the source text or path to a text file are accepted.}
\usage{
eval.polyglot(languageId, source, path)
}
\arguments{
\item{languageId}{character string. Determines the language in which to evaluate the source.}
\item{source}{character string. The text source which has to be evaluated.}
\item{path}{character string. Path to a source file.}
}
\description{
Evaluates expressions in the language with the given id. Either the source text or path to a text file are accepted.
}
\examples{
eval.polyglot("R", "42")
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fastrInteropt.R
\name{export}
\alias{export}
\title{Explicitly exports a polyglot symbol. Exporting a symbol with a NULL value will remove the
symbol from the polyglot object.
The exported symbol value can either be a polyglot object (e.g. a native
object from another language) to support interoperability between languages,
or a R object.}
\usage{
export(symbolName, value)
}
\arguments{
\item{symbolName}{character string. The name with which the symbol should be exported into the polyglot
scope.}
\item{value}{The value to export for}
}
\description{
Explicitly exports a polyglot symbol. Exporting a symbol with a NULL value will remove the
symbol from the polyglot object.
The exported symbol value can either be a polyglot object (e.g. a native
object from another language) to support interoperability between languages,
or a R object.
}
\examples{
export('foo', 'foo')
export('foo', new.env())
}
\seealso{
\code{\link{import}}
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fastrInteropt.R
\name{import}
\alias{import}
\title{Explicitly imports a polyglot symbol. Reading a symbol that does not exist will return NULL.
The returned symbol value can either be a polyglot object (e.g. a native
object from the other language) to support interoperability between languages,
or a value converted into a native R type - e.g. integer, double, logical, character, etc.}
\usage{
import(symbolName)
}
\arguments{
\item{symbolName}{character string. The name of the symbol to search for.}
}
\description{
Explicitly imports a polyglot symbol. Reading a symbol that does not exist will return NULL.
The returned symbol value can either be a polyglot object (e.g. a native
object from the other language) to support interoperability between languages,
or a value converted into a native R type - e.g. integer, double, logical, character, etc.
}
\examples{
import('foo')
}
\seealso{
\code{\link{export}}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment