File: nameOfClass.python.builtin.type.Rd

package info (click to toggle)
r-cran-reticulate 1.41.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,088 kB
  • sloc: cpp: 5,154; python: 620; sh: 13; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 631 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/python.R
\name{nameOfClass.python.builtin.type}
\alias{nameOfClass.python.builtin.type}
\title{\code{nameOfClass()} for Python objects}
\usage{
\method{nameOfClass}{python.builtin.type}(x)
}
\arguments{
\item{x}{A Python class}
}
\value{
A scalar string matching the S3 class of objects constructed from the
type.
}
\description{
This generic enables passing a \code{python.builtin.type} object as the 2nd
argument to \code{base::inherits()}.
}
\examples{
\dontrun{
  numpy <- import("numpy")
  x <- r_to_py(array(1:3))
  inherits(x, numpy$ndarray)
}
}