Learn R Programming

languageserver (version 0.3.0)

Workspace: A data structure for a session workspace

Description

A Workspace is initialized at the start of a session, when the language server is started. Its goal is to contain the Namespaces of the packages that are loaded during the session for quick reference.

Usage

Workspace

Arguments

Format

An object of class R6ClassGenerator of length 24.

Fields

pkgname

a character, a package name

object

a character, an object name

funct

a character, a function name

topic

a character, a help topic name

parse_result

?

Methods

  • load_package(pkgname): add a new Namespace for pkgname if necessary and if possible

  • guess_package(object): returns the most recently loaded package in which object can be found

  • get_namespace(pkgname): return the Namespace of pkgname

  • get_signature(funct, pkgname = NULL): return the signature of funct

  • get_formals(funct, pkgname = NULL): return the base::formals() of funct

  • get_help(topic, pkgname = NULL): return the help text of topic

  • load_to_global(parse_result):