Comments (3)
That's because O'Reilly manually did the emoji translation; they must have missed that one.
from r4ds.
This is strange.
When I run the same lines in my console, I get the emoji.
And it also shows up in the html when I knit the following excerpt from the book (as.Rmd)
---
title: "Untitled"
output: html_document
date: "2024-01-08"
---
### Other special characters
As well as `\"`, `\'`, and `\\`, there are a handful of other special characters that may come in handy. The most common are `\n`, a new line, and `\t`, tab. You'll also sometimes see strings containing Unicode escapes that start with `\u` or `\U`. This is a way of writing non-English characters that work on all systems. You can see the complete list of other special characters in `?Quotes`.
```{r}
x <- c("one\ntwo", "one\ttwo", "\u00b5", "\U0001f604")
x
stringr::str_view(x)
from r4ds.
I would have guessed it was an O'Reilly issue. Hopefully it will be corrected in the next printing. Thanks.
from r4ds.
Related Issues (20)
- Questions about the order of words
- 19.5.3 Rolling joins - parties example
- hexbin package
- Exercise in 1.5.5 - linewidth as undefined parameter? HOT 1
- Figure 5.7 doesn't seem right. HOT 2
- Text says "seven chapters into this book" in Chp 6 HOT 2
- Minor error in ch. 6.2.2 HOT 1
- Minor issue with problems in 3.2.5
- Quotation marks in geom_smooth(method = "lm") HOT 2
- Footer navigation error HOT 2
- Link to next section from section 18 shows as "19 Joins ' class='pagination-link' href='/joins'> 19 Joins", and is unclickable. HOT 1
- Footer navigation error of 'Whole Game' section HOT 1
- When a literal ] appears in square brackets in a regular expression, base R functions find nothing within the range unless perl=TRUE (R for Data Science could mention this)
- Some general errors found it in the book. HOT 1
- Something wrong with the figure captions HOT 3
- Page Navigation Issue
- A figure for pivot_wider()
- Exercise 6 from 1.5.5 - Incorrect Code HOT 2
- Typo in chapter 25.2 Vector Functions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r4ds.