-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from asieira/i20_get_var
Better handling of encoding (resolves #20)
- Loading branch information
Showing
6 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: SnakeCharmR | ||
Version: 1.0.2 | ||
Date: 2016-05-20 | ||
Version: 1.0.3 | ||
Date: 2016-05-29 | ||
Title: R and Python Integration | ||
Author: Alexandre Sieira, forked off of rPython by Carlos J. Gil Bellosta | ||
Maintainer: Alexandre Sieira <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# context("Rcpp get of string/bytes and unicode types") | ||
# | ||
# test_that("we can read string//bytes and unicode", { | ||
# py.exec("_test_var = 'blah'") | ||
# expect_equal(rcpp_Py_get_var("_test_var"), "blah") | ||
# | ||
# py.exec("_test_var = u'blah'") | ||
# expect_equal(rcpp_Py_get_var("_test_var"), "blah") | ||
# | ||
# py.exec("_test_var = u'áéíóú'") | ||
# expect_equal(rcpp_Py_get_var("_test_var"), "áéíóú") | ||
# | ||
# py.exec("_test_var = 1") | ||
# expect_error(rcpp_Py_get_var("_test_var"), "variable is not a string") | ||
# }) |