write.properties: Write a Java Properties File

Description Usage Arguments Value Author(s) See Also Examples

View source: R/write.properties.R

Description

Write a Java Properties File

Usage

1
write.properties(file, properties, fields = NULL, encoding = "UTF-8")

Arguments

file

properties file, either a character string (path) or a connection

properties

list with key-value pairs

fields

subset of field names, if NULL, all fields are included

encoding

encoding of the properties file to read (default value "UTF-8")

Value

nothing; the properties are written to file

Author(s)

Daan Seynaeve

See Also

read.properties for reading properties files

Examples

1
2
3
4
5
tf <- tempfile()
write.properties(file = tf,
    properties = list(key1 = "value1", key2 = "value2", key3 = "value3"),
    fields = c("key2", "key3"))
unlink(tf)

Example output



properties documentation built on May 2, 2019, 9:16 a.m.