create_config_state function

Create config for R interfaces