waitForFile: Wait for a Model Derivative Translation to Complete.

View source: R/utils.R

waitForFileR Documentation

Wait for a Model Derivative Translation to Complete.

Description

Polls checkFile at a fixed interval until the translation reaches a terminal state ("success", "failed", or "timeout").

Usage

waitForFile(urn, token, interval = 5, timeout = 300, verbose = TRUE)

Arguments

urn

A string. Base64-encoded source URN.

token

A string or aps_token object with data:read scope.

interval

Seconds between polls. Defaults to 5.

timeout

Maximum seconds to wait before aborting. Defaults to 300.

verbose

If TRUE (default), prints a message after each poll.

Value

The final checkFile response object.

Examples

## Not run: 
myEncodedUrn <- jsonlite::base64_enc(myUrn)
resp <- translateSvf(urn = myEncodedUrn, token = myToken)
done <- waitForFile(urn = myEncodedUrn, token = myToken)
done$content$status

## End(Not run)

AutoDeskR documentation built on May 28, 2026, 5:08 p.m.