Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don’t fail if ‘rstudioapi’ isn’t installed #293

@klmr

Description

@klmr

Currently ‘box’ assumes that ‘rstudioapi’ is installed if the code is run from inside RStudio:

box/R/paths.r

Line 193 in 0345109

document_path = rstudioapi::getActiveDocumentContext()$path

However, this is apparently not always the case. Make code conditional on the package’s existence, or avoid depending on it altogether.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions