Git Product home page Git Product logo

highr's Introduction

This is a repo to host the (Markdown) source files of my personal website, including my Chinese and English blogs, as well as several project websites (such as knitr.) The content of all pages is licensed under CC BY-NC-SA 4.0.

You are welcome to post comments on my site. To do so, you need to log in using your GitHub account at the bottom of a page. If you have any other feedback, comments, or questions, please post them to my GitHub discussion board.

A technical note

To build the website locally, you must clone this repo with its submodule (use the --recursive argument), e.g.,

git clone --recursive [email protected]:yihui/yihui.org.git

The website is built via the R package blogdown. Please read its documentation for how to use it.

I don't recommend you to study how my website is built, because it is complicated. In particular, the way I manage images is fairly complicated.

highr's People

Contributors

cderv avatar christophergandrud avatar dcser123 avatar fengy83 avatar yihui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

highr's Issues

Highlighting keywords in `walk`, `glue` and `across`

Hi Yihui - Should functions used in walk, glue and across be highlighted as keywords?

---
title: "test"
---

```{r}
library(tidyverse)
library(glue)

walk(c("a\n\u00b5", "b\n\\u00b5"), guess_encoding)

glue("This number is {str_to_title(as.character(123))}")
     
tribble(~a, ~b,
        1, 2,
        3, 4) |> 
  mutate(across(everything(), as.character))
walk("test.qmd", knitr::purl, quiet = TRUE, documentation = 0)

"test.R" |> 
  read_lines() |> 
  highr::hi_latex() |> 
  str_extract_all("(?<=kwd\\{)[a-zA-Z0-9_.]*(?=\\})") |> 
  unlist()

[1] "library"    "library"    "walk"       "c"          "glue"       "tribble"    "mutate"    
[8] "across"     "everything"

<sup>Created on 2022-12-30 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>

Unable to load highr package

i installed R-3.2.2 in my linux,but cannot load highr_0.8.tar.gz or highr_0.7.1.tar.gz by R CMD INSTALL either package , what can i do except uninstall R-3.2.2 and reinstall the higher version of R

R >=3.2.3 support issues

Hi @yihui,

I see that you just bumped the required R version to >= 3.2.3. Unfortunately since knitr imports this package, this means that my R 3.1 builds on travis don't work anymore. See here. (I just cleared the travis cache on this package, which is why I got the error as it tried to pull in a fresh version of highr).

I see this commit where you remove your previous hack. Is there any way we can keep it or improve it to keep 3.1 support? Currently, tidyverse packages try and support R >=3.1. When 3.6 releases we will probably drop support for 3.1 (which will be a welcome change). But in the meantime, I think this is going to affect a lot of our travis builds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.