- package: tis-rtools
- name: Rtools
- version: 4.4.6459-2
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 451.24 Mo
package : tis-rtools
version : 4.4.6459-2
architecture : x64
section : base
priority : optional
name : Rtools
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : Rtools is the toolchain package used under Windows to create basic R and R packages containing compiled code
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process :
description_fr : Rtools est la chaîne d'outils utilisée sous Windows pour créer des packages R de base et des packages R contenant du code compilé
description_pl : Rtools to pakiet toolchain używany w systemie Windows do tworzenia podstawowych pakietów R i R zawierających skompilowany kod
description_de : Rtools ist das Toolchain-Paket, das unter Windows verwendet wird, um grundlegende R- und R-Pakete mit kompiliertem Code zu erstellen
description_es : Rtools es el paquete de la cadena de herramientas utilizado en Windows para crear paquetes básicos de R y R que contienen código compilado
description_pt : Rtools é o pacote de ferramentas utilizado no Windows para criar R básico e pacotes R que contêm código compilado
description_it : Rtools è il pacchetto della toolchain utilizzato in Windows per creare pacchetti R di base e pacchetti R contenenti codice compilato
description_nl : Rtools is het toolchainpakket dat onder Windows wordt gebruikt om basis-R en R-pakketten met gecompileerde code te maken
description_ru : Rtools - это пакет инструментария, используемый в Windows для создания базовых пакетов R и пакетов R, содержащих скомпилированный код
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage :
package_uuid : c497dda2-8a38-4fbf-abb8-0e94349056b6
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 51bce9c7e1118efa2a9f1e6b1171925aa0aa82ffa50f7e25f166541b5f7f64a4
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-03-02T06:00:27.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : KHrAAs+zsRUXw0FBeHFUJJ45Q4pI6ci0bHBSdQuX4ny9BudKc1ng9UfH1/ap9R++88H/gtXqL43ApFxSArZG8phZwcQqrGgQPnbyNwh1vAnZE5kHG6lxtwIi3FdhIw3X1eLiao/WjjGcAITLPT98bF3rwgEGB4srWAQvHo/THTXE0HS0RUg21mDCNgKCrCxnkJWb70u4nVX+GuDzkqj/0UCeKZ4KBZoRADsVPIH6kF7YG/bYtBUxz48C+gPWrrmdcgQxyGVUKrGqba0vQqUzeZsSiLZhvuuLPpUuj0WlRcZquh/Lj14bYBmarlEA/5XvX11gOvW2LCBjO/0zPb3PxA==
# -*- coding: utf-8 -*-
from setuphelpers import *
import glob
import time
install_dir = makepath("C:", "Program Files (x86)","Rtools")
old_app = makepath("C:","Rtools")
def install():
# Uninstalling other version of this software
for to_uninstall in installed_softwares("rtools"):
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(ensure_list(control.impacted_process))
run(uninstall_cmd(to_uninstall["key"]))
wait_uninstallkey_absent(to_uninstall["key"])
time.sleep(7)
if isdir(install_dir):
remove_tree(install_dir)
bin_name = glob.glob('rtools*.exe')[0]
version = control.get_software_version().rsplit(".", 1)[0].replace(".", "")
install_exe_if_needed(
bin_name,
silentflags=' /DIR="C:\Program Files (x86)\Rtools" /VERYSILENT /SUPPRESSMSGBOXES',
key=f"Rtools{version}_is1",
min_version=control.get_software_version(),
)
def uninstall() :
# Uninstalling other version of this software
for to_uninstall in installed_softwares("rtools"):
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(ensure_list(control.impacted_process))
run(uninstall_cmd(to_uninstall["key"]))
wait_uninstallkey_absent(to_uninstall["key"])
time.sleep(7)
if isdir(install_dir):
remove_tree(install_dir)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import requests
import os
def update_package():
# Déclaration des variables locales
package_updated = False
# Récupérer les proxys
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
# URL de base pour RTools
url = "https://cran.r-project.org/bin/windows/Rtools/"
# Getting latest version from official sources
print("URL used is: %s" % url)
for bs_search in bs_find_all(url, "a", proxies=proxies):
if bs_search.get(
"href"):
download_url = url + bs_search["href"]
for bs_search_exe in bs_find_all(download_url, "a", proxies=proxies):
if bs_search_exe.get("href").endswith(".exe"):
download_url = download_url.rsplit("/", 1)[0] + "/" + bs_search_exe["href"]
latest_bin = download_url.rsplit("/")[-1]
version = bs_search.get_text().split(" ")[1]
break
break
# Deleting binaries
for f in glob.glob("*.exe"):
if f != latest_bin:
remove_file(f)
# Downloading latest binaries
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
else:
print("Binary is present: %s" % latest_bin)
version = get_version_from_binary(latest_bin)
control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
9a6791fb2f6c57a4906e1ee10f23621c9bdfe6dfe12bacc779158b5700919d8c : WAPT/control
51bce9c7e1118efa2a9f1e6b1171925aa0aa82ffa50f7e25f166541b5f7f64a4 : WAPT/icon.png
f9cda5dd848e54d458326d47efc76ea49bf00bf1e7823e67d9cccd44a257184f : luti.json
de9602992848faaeddca41f118dd6dc3de9bbfb00b8d87ebe5522af1dad1904b : rtools44-6459-6401.exe
67555d6467649922f329531a91a8fd72c6e0d134a7ae249b82b48be93115bd4e : setup.py
4043f447a088701d2740e84092e9964d0c2c3b6257fa609a59ff13db274c0c7b : update_package.py