File: wstring.R

package info (click to toggle)
r-cran-r.rsp 0.46.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,472 kB
  • sloc: javascript: 612; tcl: 304; sh: 18; makefile: 16
file content (13 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
library("R.rsp")

x <- sqrt(2)
strings <- c(character(0L), "", NA_character_, "Hello world!", "x={{x}}", "x^2={{x^2}}")

for (s in strings) {
  print(s)
  t <- wstring(s)
  print(t)
}

t <- wstring(strings)
print(t)