| Title: | Submit Proposals to Google Summer of Code |
|---|---|
| Description: | Provides a single function to determine whether a Google Summer of Code proposal can still be submitted. The submission deadline is stored in a package-level environment variable so that it can be updated without modifying source documentation. Documentation is generated dynamically: the deadline is resolved at install time and the time-remaining message is computed at render time using Rd Sexpr macros. |
| Authors: | Aditya Bansal [aut, cre] |
| Maintainer: | Aditya Bansal <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-07-14 22:48:22 UTC |
| Source: | https://github.com/adit-0132/multilingual-docs |
Checks whether the current system date falls on or before the package
submission deadline. Returns TRUE if submissions are still open and
FALSE once the deadline has passed.
The deadline is not hard-coded in the documentation. It is read from the
package environment .pkg_env$deadline at install time:
Deadline: 2025-03-31
When you view this help page, the following message is computed live at render time:
The deadline has passed, try next year!
submit_proposal() ## S3 method for class 'gsoc_proposal' print(x, ...)submit_proposal() ## S3 method for class 'gsoc_proposal' print(x, ...)
x |
An object of class |
... |
Further arguments passed to or from other methods. Argument names
with special characters (such as |
This section showcases ordinary inline markup so we can see it render and, later, translate.
Emphasis with emph, strong, and bold. Code and objects:
submit_proposal(), a variable deadline, a package gsocproposal,
a file ‘R/globals.R’, an option --no-save, an environment variable
LANGUAGE, a command R CMD INSTALL, and a keystroke Ctrl+C.
Quotations: ‘single’ and “double”; a definition Sexpr; an
acronym CRAN; a citation R Core Team; verbatim #ifdef;
literal sample ‘x <- 1’. The R language. A non-ASCII fallback:
Björk. A literal percent sign: 50%. A user-defined macro that
takes an argument: The deadline is 2025-03-31.
An itemized list:
Build stage runs at R CMD build.
Install stage runs at R CMD INSTALL.
Render stage runs every time ?submit_proposal is opened.
An enumerated list:
First.
Second.
A described list:
Baked into the source tarball.
Baked into the installed ‘.rdb’ database.
Evaluated live on every help lookup.
| Stage | Runs during | Live in .rdb? |
| build | R CMD build | no |
| install | R CMD INSTALL | no (baked to text) |
| render | every help lookup | yes |
Inline math and display math:
The lines below are preprocessor-style conditionals. The # must be the
first character on its line, the block must be wholly nested inside a macro, and
each block is closed by #endif (parseRd.pdf sections 2.3 and 3).
This paragraph is included only on Windows.
A single logical value. TRUE if Sys.Date() is less than or equal
to the deadline stored in .pkg_env$deadline; FALSE otherwise.
Every Sexpr variant in one place. stage
controls when the code runs; results controls how the value
is inserted.
[evaluated at build stage]
R 4.6.1
2026-07-14
results=verbatim prints as if at the console:
[1] 2
echo=TRUE echoes the source too:
> x <- 40 + 2; x
[1] 42
results=rd treats the returned string as Rd markup and splices it in
place: (this fragment was generated and re-parsed as Rd)
results=hide evaluates for its side effect and inserts nothing:
Output-format conditionals choose content per renderer. HTML output is shown here. A raw passthrough for HTML only: raw HTML.
R Core Team. Writing R Extensions. https://cran.r-project.org/doc/manuals/R-exts.html. Murdoch, D. (2010). Parsing Rd files.
Sys.Date for the system date, as.Date for
date parsing, and this page for a self link.
# Check whether the submission window is currently open. submit_proposal() ## Not run: # Not run during checks (e.g. needs interaction or a network): browseURL("https://summerofcode.withgoogle.com") ## End(Not run) # Run interactively but skipped on CRAN's timing-sensitive checks: Sys.sleep(0)# Check whether the submission window is currently open. submit_proposal() ## Not run: # Not run during checks (e.g. needs interaction or a network): browseURL("https://summerofcode.withgoogle.com") ## End(Not run) # Run interactively but skipped on CRAN's timing-sensitive checks: Sys.sleep(0)
Pretty-prints the parse tree of a help topic as stored in the installed
.rdb database (via Rd_db), one node per line,
indented by depth. Unlike walking the source .Rd with
parse_Rd, this shows the post-install tree: build- and
install-stage Sexpr are baked to plain text, #ifdef blocks are
resolved, render-stage Sexpr stay live (with their Rd_option), and
user macros keep a USERMACRO trace.
walk_rdb_tree(topic, package = "gsocproposal")walk_rdb_tree(topic, package = "gsocproposal")
topic |
Help topic to inspect, given unquoted
(e.g. |
package |
Installed package to read from. Defaults to |
Invisibly, the Rd object for topic; called for the side effect of
printing the tree.
walk_rdb_tree(sexpr_render) walk_rdb_tree(ifdef)walk_rdb_tree(sexpr_render) walk_rdb_tree(ifdef)