Static ReadonlyINLINE_ProtectedfileProtected ReadonlywrappedThe role(s) of this file, if any, in general your file should not decide for itself what role it has in the project context, this is for the loaders plugins to decide (cf. PluginType) as they can, e.g., respect ignore files, updated mappings, etc. However, they will 1) set this role as soon as they decide on it (using assignRole) and 2) try to respect an already assigned role (however, user configurations may override this).
Staticfromrproject lifter, this does not re-create if already an rproject file
Optionalrole: FileRoleStaticfromCreates a FlowrFile from a given RParseRequest.
Set the appropriate callback to trigger updates in case of an 'invalidate'
Assign a role to this file, this should be done by the loader plugins (cf. PluginType). Do not call this method yourself unless you are a file-loader plugin and/or really know what you are doing, this may break plugin assumptions!
The content of the file, this may be cached by the implementation and does not have to be expensive. You can used stream based implementations but right now there is no external, project-wide expressions of life cycles for files. So make sure your implementation closes the resource as soon as possible.
rv does not group its dependencies, they are all needed to run the project
either a plain name or a table carrying it ({ name = "ggplot2", repository = "new-rspm" })
Reload the file content because something has changed.
ProtectedloadThe path to the file, this is used for identification and logging purposes. If the file does not exist on disk, this can be a virtual path (e.g. for inline files). Even though this is a getter, please make sure that the operation is cheap and deterministic (some decorators may overwrite the path, e.g., because they support other protocols).
unlike the Package of a DESCRIPTION this is no namespace, such a project is no package
Remove a previously added callback
rv pins a concrete r_version, e.g. 4.5
ProtectedsetProtected
Allows to overwrite the content cache.
The
rproject.tomlof an rv project, lifted by FlowrRProjectFile.from.