Learn R Programming

languageserver (version 0.3.0)

definition_reply: Get the location of a specified function definition

Description

If the function is not found in a file but is found in a loaded package, writes the function definition to a temporary file and returns that as the location.

Usage

definition_reply(id, uri, workspace, document, position)

Arguments

id

a numeric, the id of the process that started the server

uri

a character, the path to a file as defined by RFC 3986

workspace

a Workspace object, the current workspace

document

a character, the contents of the document

position

a position object

Value

A Response with the uri and range of the function definition, or just the id if the function is not found.