Represents an instance of a class, as a special type of
environment. In this case, the members are methods and, for
environment API is supported, with restrictions on
assignments. Retrieve objects with
get. Replacing a
method is not supported. For
QObject instances, the members
include the properties, which may be set through assignment, e.g.,
C++ operators are also supported, with the familiar syntax. Most C++
operators have obvious R equivalents. Two exceptions are the
<< operators, which are defined as the infix functions
%<<% in R.
Some classes in the Qt API are light-weight, and their instances are
usually treated as values. For some of the most prevalent of these
types, we define coercion methods to convenient R equivalents. Below,
we list the R type corresponding to each Qt type. Coercion methods are
defined for the conventional generic for the type,
as.integer for integers. For those types with a variant
F variant yields
double values in R, while
QSize would be integer.
RQtClass (for constructing instances)
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.