Documentation
¶
Index ¶
- Constants
- Variables
- type ExistsFunc
- type MockRInterpreter
- func (m *MockRInterpreter) CreateLockfile(lockfilePath util.AbsolutePath) error
- func (m *MockRInterpreter) GetLockFilePath() (util.RelativePath, bool, error)
- func (m *MockRInterpreter) GetRExecutable() (util.AbsolutePath, error)
- func (m *MockRInterpreter) GetRVersion() (string, error)
- func (m *MockRInterpreter) Init() error
- type RInterpreter
- type RInterpreterFactory
Constants ¶
View Source
const DefaultRenvLockfile = "renv.lock"
Variables ¶
View Source
var MissingRError = types.NewAgentError(types.ErrorRExecNotFound, errors.New("unable to detect any R interpreters"), nil)
Functions ¶
This section is empty.
Types ¶
type MockRInterpreter ¶
func NewMockRInterpreter ¶
func NewMockRInterpreter() *MockRInterpreter
func (*MockRInterpreter) CreateLockfile ¶
func (m *MockRInterpreter) CreateLockfile(lockfilePath util.AbsolutePath) error
func (*MockRInterpreter) GetLockFilePath ¶
func (m *MockRInterpreter) GetLockFilePath() (util.RelativePath, bool, error)
func (*MockRInterpreter) GetRExecutable ¶
func (m *MockRInterpreter) GetRExecutable() (util.AbsolutePath, error)
func (*MockRInterpreter) GetRVersion ¶
func (m *MockRInterpreter) GetRVersion() (string, error)
func (*MockRInterpreter) Init ¶
func (m *MockRInterpreter) Init() error
type RInterpreter ¶
type RInterpreter interface {
GetRExecutable() (util.AbsolutePath, error)
GetRVersion() (string, error)
GetLockFilePath() (util.RelativePath, bool, error)
CreateLockfile(util.AbsolutePath) error
}
func NewRInterpreter ¶
func NewRInterpreter( base util.AbsolutePath, rExecutableParam util.Path, log logging.Logger, cmdExecutorOverride executor.Executor, pathLookerOverride util.PathLooker, existsFuncOverride ExistsFunc, ) (RInterpreter, error)
type RInterpreterFactory ¶
type RInterpreterFactory func( base util.AbsolutePath, rExecutableParam util.Path, log logging.Logger, cmdExecutorOverride executor.Executor, pathLookerOverride util.PathLooker, existsFuncOverride ExistsFunc, ) (RInterpreter, error)
Click to show internal directories.
Click to hide internal directories.