Comments (4)
is_GH <- function() {
Sys.getenv("GITHUB_ACTIONS") != ""
}
gh_warning <- function(pkg, path, message, envir = caller_env()) {
gh_message("warning", pkg, path, message, envir = envir)
}
gh_error <- function(pkg, path, message, envir = caller_env()) {
gh_message("error", pkg, path, message, envir = envir)
}
gh_message <- function(type, pkg, path, message, envir = caller_env()) {
if (!is_GH() && is.null(path)) {
return()
}
message <- purrr::map_chr(message, cli::format_inline, .envir = envir)
title <- message[[1]]
message <- paste0(message[-1], collapse = "%0A")
cli::cli_inform("::{type} file={path},title={title}::{oneline}")
}
abort_problem <- function(pkg,
path,
message,
envir = caller_env(),
call = caller_env()) {
gh_error(pkg, path, message, envir = envir)
cli::cli_abort(message, .envir = envir, call = call)
}
from pkgdown.
Also should flag missing favicons
from pkgdown.
Related Issues (20)
- I don't know how to choose a series of builds for devtools and pkgdown? HOT 3
- Authors/citation upkeep HOT 1
- Consider styling of long article titles on mobile
- Use BS5 in tests
- Review uses of `expect_snapshot()`
- Ask translators for updates
- Convert `"--"` to `–` HOT 1
- Links to source files are wrong when package is located in a subfolder HOT 1
- Warn when menu icon lacks alt text
- Eliminate use of `file.path()`
- Don't use `fs::`
- Is the use of _pkgdown.yml file now mandatory HOT 1
- More info when sitrep flags missing alt text
- Generating favicons produces `"Path exists and overwrite is FALSE"` error with devel-pkgdown HOT 5
- Check form spacing HOT 2
- FR: separate the customise vignette in 2: 1.theme your site and 2. customise navigation of your site HOT 1
- template_reference should not add single quotes and ` when they are not needed. HOT 3
- Remove the search vignette from navbar and / or transfer doc to `?build_search`
- Possible to change the default build directory ? 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 pkgdown.