rstudio-ide

发布时间:2024-1-19 | 杂志分类:其他
免费制作
更多内容

rstudio-ide

Search inside environmentSyntax highlighting based on your file's extensionCode diagnostics that appear in the margin. Hover over diagnostic symbols for details.Tab completion to finish function names, file paths, arguments, and more.Multi-language code snippets to quickly use common blocks of code.Open in new windowSave Find and replaceCompile as notebookRun selected codeRe-run previous codeSource with or w/out Echo or as a Local JobShow file outlineJump to function in file Change file type... [收起]
[展开]
rstudio-ide
粉丝: {{bookData.followerCount}}
文本内容
第1页

Search inside

environment

Syntax highlighting based

on your file's extension

Code diagnostics that appear in the margin.

Hover over diagnostic symbols for details.

Tab completion to finish function

names, file paths, arguments, and more.

Multi-language code snippets to

quickly use common blocks of code.

Open in new

window

Save Find and

replace

Compile as

notebook

Run

selected

code

Re-run

previous code

Source with or

w/out Echo or

as a Local Job

Show file

outline

Jump to function in file Change file type

Navigate

backwards/

forwards

A File browser keyed to your working directory.

Click on file or directory name to open.

Path to displayed directory

Create

folder

Delete

file

Rename

file

Change

directory

Displays saved objects by

type with short description

View function

source code

View in data

viewer

Load

workspace

Save

workspace

Import data

with wizard

Clear R

workspace

Display objects

as list or grid

Choose environment to display from

list of parent environments

History of past

commands to

run/copy

Manage

external

databases

Working

Directory

Maximize,

minimize panes

Drag pane

boundaries

Multiple cursors/column selection

with Alt + mouse drag.

R tutorials

Ctrl/Cmd + 

to see history

More file

options

RStudio IDE : : CHEATSHEET

Source Editor

RStudio opens plots in a dedicated Plots pane

Navigate

recent plots

Open in

window

Export

plot

Delete

plot

Delete

all plots

RStudio opens documentation in a dedicated Help pane

Home page of

helpful links

Search within

help file

Search for

help file

Viewer pane displays HTML content, such as Shiny

apps, RMarkdown reports, and interactive visualizations

Stop Shiny

app

Publish to shinyapps.io,

rpubs, RSConnect, …

Refresh

Tab Panes

Open Shiny, R Markdown,

knitr, Sweave, LaTeX, .Rd files

and more in Source Pane

RStudio recognizes that files named app.R,

server.R, ui.R, and global.R belong to a shiny app

Run

app

Choose

location to

view app

Publish to

shinyapps.io

or server

Manage

publish

accounts

Documents and Apps

Access markdown guide at

Help > Markdown Quick Reference

See reverse side for more on Visual Editor

Check

spelling

Render

output

Choose

output

format

Configure

render

options

Insert

code

chunk

Jump to

previous

chunk

Jump

to next

chunk

Run

code

Publish

to server

Show file

outline

Set knitr

chunk

options

Run this and

all previous

code chunks

Run this

code chunk Jump to

section

or chunk

Visual

Editor

(reverse

side)

GUI Package manager lists every installed package

Click to load package with

library(). Unclick to detach

package with detach().

Delete

from

library

Install

Packages

Update

Packages

Package

version

installed

Browse

package site

View(<data>) opens spreadsheet like view of data set

Sort by

values

Filter rows by value

or value range

Search

for value

Turn on at Tools > Project Options > Git/SVN

• Added

• Deleted

• Modified

• Renamed • Untracked A

D

M

R

?

Stage

files:

Show file diff to view file differences

Current

branch

Commit

staged files

Push/Pull

to remote

View

History

Open shell to type commands

Version

Control

Package Development

Roxygen guide at Help > Roxygen Quick Reference

See package information in the Build Tab

Create a new package with

File > New Project > New Directory > R Package

Enable roxygen documentation with

Tools > Project Options > Build Tools

Install package

and restart R

Run R CMD

check

Run devtools::load_all()

and reload changes

Customize

package build

options

Run

package

tests

Clear output

and rebuild

Use debug(), browser(), or a breakpoint and execute

your code to open the debugger mode.

Debug Mode

Examine variables

in executing

environment

Click next to line number to

add/remove a breakpoint.

Select function

in traceback to

debug

Highlighted line shows where

execution has paused

Run commands in

environment where

execution has paused

Step through

code one line

at a time

Step into and

out of functions

to run

Resume

execution

Quit debug

mode

Open traceback to examine

the functions that R called

before the error occurred

Launch debugger

mode from origin

of error

View

memory

usage

R Markdown

Build Log

Run scripts in

separate sessions

CC BY SA Posit Software, PBC • info@posit.co • posit.co • Learn more at posit.co/products/open-source/rstudio • HTML cheatsheets at pos.it/cheatsheets • RStudio IDE 2023.06.1+524 • Updated: 2023-07

第2页

RUN CODE Windows/Linux Mac

Search command history Ctrl+ Cmd+

Interrupt current command Esc Esc

Clear console Ctrl+L Ctrl+L

NAVIGATE CODE

Go to File/Function Ctrl+. Ctrl+.

WRITE CODE

Attempt completion Tab or Ctrl+Space Tab or Ctrl+Space

Insert <- (assignment operator) Alt+- Option+-

Insert |> or %>% (pipe operator) Ctrl+Shift+M Cmd+Shift+M

(Un)Comment selection Ctrl+Shift+C Cmd+Shift+C

MAKE PACKAGES Windows/Linux Mac

Load All (devtools) Ctrl+Shift+L Cmd+Shift+L

Test Package (Desktop) Ctrl+Shift+T Cmd+Shift+T

Document Package Ctrl+Shift+D Cmd+Shift+D

Extend the open source server with a

commercial license, support, and more:

• open and run multiple R sessions at once

• tune your resources to improve performance

• administrative tools for managing user sessions

• collaborate real-time with others in shared projects

• switch easily from one version of R to a different version

• integrate with your authentication, authorization, and audit practices

• work in the RStudio IDE, JupyterLab, Jupyter Notebooks, or VS Code

Download a free 45 day evaluation at

www.rstudio.com/products/workbench/evaluation/

WHY RSTUDIO WORKBENCH?

Keyboard Shortcuts

DOCUMENTS AND APPS

Knit Document (knitr) Ctrl+Shift+K Cmd+Shift+K

Insert chunk (Sweave & Knitr) Ctrl+Alt+I Cmd+Option+I

Run from start to current line Ctrl+Alt+B Cmd+Option+B

MORE KEYBOARD SHORTCUTS

Keyboard Shortcuts Help Alt+Shift+K Option+Shift+K

Show Command Palette Ctrl+Shift+P Cmd+Shift+P

RStudio

Workbench

Visual Editor

Share Projects

Share Project

with Collaborators

Active shared

collaborators

Select

R Version

Start new R Session

in current project

Close R Session

in project

T H J

Name of

current

project

RStudio saves the call history,

workspace, and working

directory associated with a

project. It reloads each when

you re-open a project.

File > New Project

Check

spelling

Render

output

Choose

output

format

Choose

output

location

Insert

code

chunk

Jump to

previous

chunk

Jump

to next

chunk

Run

selected

lines

Publish

to server

Show file

outline

Set knitr

chunk

options

Run this and

all previous

code chunks

Run this

code chunk

Back to

Source Editor

(front page)

File outline

Jump to chunk

or header

Add/Edit

attributes

Block

format

Insert

verbatim

code

Clear

formatting

Lists and

block

quotes

Links Citations Images

More

formatting

Insert blocks,

citations,

equations, and

special

characters

Insert and

edit tables

Search for keyboard shortcuts with

Tools > Show Command Palette

or Ctrl/Cmd + Shift + P.

View the Keyboard Shortcut Quick

Reference with Tools > Keyboard

Shortcuts or Alt/Option + Shift + K

Run Remote Jobs

Run R on remote clusters

(Kubernetes/Slurm) via the

Job Launcher

Monitor Launch a job

launcher jobs

Run launcher

jobs remotely

CC BY SA Posit Software, PBC • info@posit.co • posit.co • Learn more at posit.co/products/open-source/rstudio • HTML cheatsheets at pos.it/cheatsheets • RStudio IDE 2023.06.1+524 • Updated: 2023-07

百万用户使用云展网进行精美电子书制作,只要您有文档,即可一键上传,自动生成链接和二维码(独立电子书),支持分享到微信和网站!
收藏
转发
下载
免费制作
其他案例
更多案例
免费制作
x
{{item.desc}}
下载
{{item.title}}
{{toast}}