Learn R Programming

This R package holds helper functions for GdR MASCOT-NUM template (see https://www.gdr-mascotnum.fr/template.html for spec.).

You can install it using:

install.packages('remotes')
remotes::install_github("MASCOTNUM/templr")

(No need for any compiler, whatever OS)

Copy Link

Version

Install

install.packages('templr')

Monthly Downloads

323

Version

0.2-3

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Yann Richet

Last Published

January 13th, 2026

Functions in templr (0.2-3)

tell_Y

ask&tell component function to 'tell' objective function value to waiting 'ask_Y' call in another R session.
tell_dY

ask&tell component function to 'tell' objective function value to waiting 'ask_Y' call in another R session.
from01

Helper function to scale from [0,1] to [min,max]
ask_dX

ask&tell component function to 'ask' where objective function gradient evaluation is required.
min_input

Helper function to get $min from 'input' list
parse.algorithm

Parse algorithm file and returns its (header) indos and methods
import

Dependencies loader, supports many protocols like github:, gitlab:, ... using remotes::instal_... Will create a local '.lib' directory to store packages installed
ask_X

ask&tell component function to 'ask' where objective function evaluation is required.
max_input

Helper function to get $max from 'input' list
list.results

Parse algorithm string result in R list
ask_Y

ask&tell component function to 'ask' objective function evaluation.
ask_dY

ask&tell component function to 'ask' objective function gradient evaluation using finite difference.
run.algorithm

Apply a template algorithm file to an objective function
read.algorithm

Read algorithm file and returns one header info
to01

Helper function to scale from [min,max] to [0,1]