# Dataset$next\_version

### Dataset$<mark style="color:purple;">next\_version</mark>() → [Dataset](/api/client-libraries/redivis-r/reference/dataset.md) | None

Returns a reference to the dataset at the version following the current version, or `None` if no subsequent version exists.

{% hint style="warning" %}
Note that this method won't necessarily return the latest unreleased version of the dataset, often referred to as `v next` throughout the UI / API. This method is instead used for traversing the version history of a dataset, and will always return the dataset at the version immediately following the currently referenced version.
{% endhint %}

### **Returns**

[**Dataset**](/api/client-libraries/redivis-r/reference/dataset.md) **| None**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.redivis.com/api/client-libraries/redivis-r/reference/dataset/datasetusdnext_version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
