kvk_reset_usage {kvkapiR}R Documentation

Reset session usage tracking data

Description

Clear all API usage data from the current R session. This action cannot be undone and will reset your session usage history including call counts, timestamps, and cost calculations.

Usage

kvk_reset_usage()

Details

This function clears the session-based usage tracking data stored in memory. After reset:

The function only affects session usage data. It does not change:

This can be useful for:

Value

Invisibly returns NULL. The function is called for its side effect of clearing session usage data.

See Also

kvk_usage_report for viewing current usage, kvk_export_usage for exporting session data, kvk_usage_alert for setting usage limits

Examples


# Clear session usage history
kvk_reset_usage()

# Verify reset worked
kvk_usage_report()  # Should show "No usage data found"

# Usage tracking will restart with new API calls
results <- kvk_search(plaats = "Amsterdam")
kvk_usage_report()  # Will show the new call


[Package kvkapiR version 0.1.2 Index]