tests/testthat/test-python-strings.R

context("strings")

test_that("Unicode strings are handled by py_str", {
  skip_if_no_python()
  skip_on_cran()
  skip_on_os("windows")
  main <- py_run_string("x = u'\\xfc'", convert = FALSE)
  expect_equal(py_str(main$x), "ΓΌ")
})
Mormukut11/R-interface-to-Python documentation built on May 21, 2019, 9:36 a.m.