Documentation
¶
Index ¶
- Constants
- type MockPythonInspector
- func (m *MockPythonInspector) InspectPython() (*config.Python, error)
- func (m *MockPythonInspector) ReadRequirementsFile(path util.AbsolutePath) ([]string, error)
- func (m *MockPythonInspector) ScanRequirements(base util.AbsolutePath) ([]string, []string, string, error)
- func (m *MockPythonInspector) WriteRequirementsFile(base util.AbsolutePath, reqs []string) error
- type MockRInspector
- type PythonInspector
- type RInspector
Constants ¶
View Source
const DefaultRenvLockfile = "renv.lock"
View Source
const PythonRequirementsFilename = "requirements.txt"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPythonInspector ¶
func NewMockPythonInspector ¶
func NewMockPythonInspector() *MockPythonInspector
func (*MockPythonInspector) InspectPython ¶
func (m *MockPythonInspector) InspectPython() (*config.Python, error)
func (*MockPythonInspector) ReadRequirementsFile ¶
func (m *MockPythonInspector) ReadRequirementsFile(path util.AbsolutePath) ([]string, error)
func (*MockPythonInspector) ScanRequirements ¶
func (m *MockPythonInspector) ScanRequirements(base util.AbsolutePath) ([]string, []string, string, error)
func (*MockPythonInspector) WriteRequirementsFile ¶
func (m *MockPythonInspector) WriteRequirementsFile(base util.AbsolutePath, reqs []string) error
type MockRInspector ¶
func NewMockRInspector ¶
func NewMockRInspector() *MockRInspector
func (*MockRInspector) CreateLockfile ¶
func (m *MockRInspector) CreateLockfile(lockfilePath util.AbsolutePath) error
type PythonInspector ¶
type PythonInspector interface {
InspectPython() (*config.Python, error)
ReadRequirementsFile(path util.AbsolutePath) ([]string, error)
WriteRequirementsFile(dest util.AbsolutePath, reqs []string) error
ScanRequirements(base util.AbsolutePath) ([]string, []string, string, error)
}
func NewPythonInspector ¶
func NewPythonInspector(base util.AbsolutePath, pythonPath util.Path, log logging.Logger) PythonInspector
type RInspector ¶
type RInspector interface {
InspectR() (*config.R, error)
CreateLockfile(lockfilePath util.AbsolutePath) error
}
func NewRInspector ¶
func NewRInspector(base util.AbsolutePath, rExecutable util.Path, log logging.Logger) RInspector
Click to show internal directories.
Click to hide internal directories.