-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixi.toml.jinja
38 lines (34 loc) · 1008 Bytes
/
pixi.toml.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[project]
name = "{{ project_name }}"
version = "0.1.0"
description = "Add a short description here"
authors = ["Your Name <and@email>"]
channels = ["conda-forge", "https://prefix.dev/r-forge/"]
platforms = {{ platform }}
[tasks]
[dependencies]
r-base = "{{ r_version }}.*"
{%- if 'Visual Studio Code' in ide %}
radian = ">=0.6.12,<0.7" # Visual Studio Code
r-languageserver = ">=0.3.16,<0.4" # Visual Studio Code
r-httpgd = ">=1.3.1,<1.4" # Visual Studio Code
{%- endif %}
{%- if 'JupyterLab' in ide %}
jupyterlab = ">=4.2.3" # JupyterLab
pixi-kernel = ">=0.3.0" # JupyterLab
r-irkernel = ">=1.3.2" # JupyterLab
{% endif %}
{%- if 'osx-64' in platform %}
[target.osx-64.tasks]
{%- if 'RStudio' in ide %}
rstudio = "open {{ project_name }}.Rproj"
{%- endif %}
{%- if 'Visual Studio Code' in ide %}
code = "open -a \"Visual Studio Code\" ."
{%- endif %}
{%- endif %}
[activation.env]
PIXI_R_LIBS = "$CONDA_PREFIX/lib/R/library"
R_LIBS_USER = "$PIXI_R_LIBS"
R_LIBS = "$PIXI_R_LIBS"
R_DEFAULT_PACKAGES = ""