Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sass compiler package for R

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

rstudio/sass

Repository files navigation

R build statusCRAN_Status_Badge

<style>pre { border: 1px solid #eee;}pre.r { background-color: #ffffff;}pre.r code { background-color: #ffffff;}pre.css { margin-top: -1.25rem; background-color: #f8f8f8; border-radius: 0; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;}</style>

Thesass R package provides bindings toLibSass, a fastSass compiler written in C++. Sass is a matureand stable CSS extension language that makes styling modern websitesless complex and more composable.

Installation

Install the released version ofsass from CRAN:

install.packages("sass")

Install the latest development build from GitHub:

# install.packages("remotes")remotes::install_github("rstudio/sass")

Basic usage

To compile Sass into CSS, provide Sass to theinput argument of thesass() function.input can be any of the following:

  • An R string (as in the example below).
  • A namedlist() definingSassvariables.
  • Asass_file(),sass_import(), orsass_layer().
  • A nestedlist() comprising of all the above.
library(sass)sass(input="  $size: 50%;  foo { margin: $size * .33; }")
<style>foo { margin: 16.5%;}</style>

Learn more

Seesass’soverviewvignette as well asthe officialSass documentation.

Ask a question

If you have a question aboutsass, try asking one onhttps://forum.posit.co:

RStudio Ask a question: sass

About

Sass compiler package for R

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors15


[8]ページ先頭

©2009-2025 Movatter.jp