Шаблон:File

Материал Psylab.info - энциклопедии психодиагностики
Версия от 17:19, 20 апреля 2014; Артём Клевцов (обсуждение | вклад)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Использование

{{file
  |title=Заголовок
  |filename=Имя файла
  |description=Описание
  |lang=Язык для подсветки синтаксиса
  |code=Содержимое файла
}}


Примеры

{{file
  |filename=$HOME/.Rprofile
  |lang=r
  |code=
<nowiki># .Rprofile -- commands to execute at the beginning of each R session
#
# You can use this file to load packages, set options, etc.
#
# NOTE: changes in this file won't be reflected until after you quit
# and start a new session
#

options(digits = 4)
options(digits.secs=3)
options(show.signif.stars = FALSE)
options(showWarnCalls = TRUE, showErrorCalls = TRUE)

utils::rc.settings(ipck = TRUE)</nowiki>
}}
Файл$HOME/.Rprofile

<syntaxhighlight lang="r" enclose="pre"># .Rprofile -- commands to execute at the beginning of each R session # # You can use this file to load packages, set options, etc. # # NOTE: changes in this file won't be reflected until after you quit # and start a new session # options(digits = 4) options(digits.secs = 3) options(show.signif.stars = FALSE) options(showWarnCalls = TRUE, showErrorCalls = TRUE) utils::rc.settings(ipck = TRUE)</syntaxhighlight>