Log in to DST

From Remote Desktop download to a running RStudio

Published

July 2, 2026

This page guides you from the very first login to having RStudio running and being ready to execute code.

Note

This guide assumes you are working with R. When you log in to DST, you choose “Python/R” - select R/RStudio.


Connect to the server

Step 1 - Download Microsoft Remote Desktop (Mac only)

Open the App Store on your Mac and search for “Microsoft Remote Desktop”. Download and install for free.

Windows users have Remote Desktop built in - search for “Remote Desktop Connection” in the Start menu.

Step 2 - Log in

  1. Go to remote.dst.dk in your browser
  2. Log in with your ident (4 letters) and the one-time code you receive
  3. Click Python/R
  4. Log in with username dstfse\IDENT+PROJECTNUMBER (e.g. dstfse\abcd708421) and your chosen password

You can also choose “FSE Windows” instead of Python/R - from there you land on a selection desktop and can click through to e.g. Python/R.

Step 3 - Find/create your own project folder

Open File Explorer and navigate to the workspaces folder under your project. Create a folder with your name or ident if it does not already exist:

E:/workdata/[projectnumber]/workspaces/[your-name]/

Recommended structure within your folder:

[your-name]/
  [your-project-name]/
    R/              ← all your scripts (.R files)
    datasets/       ← intermediate results (.rds files, local to DST only)
    output/         ← tables and figures ready for repatriation

Step 4 - Mac keyboard fix (do this at every connection)

Special characters such as `, $, \, @, { and } do not work correctly in Remote Desktop by default on Mac.

Solution: Switch to Unicode mode with ⌃⌘U (Ctrl + Cmd + U) inside the Remote Desktop window.

Character Mac shortcut in Unicode mode
Pipe \| Option + i
[ Option + 8
] Option + 9
{ Option + Shift + 8
} Option + Shift + 9

In RStudio, code is run with Ctrl+Enter (not Cmd+Enter).

DARTER-specific setup (project 708421)

Project 708421 uses fastreg (on CRAN) to read the registers with read_register("name") - just like the general guide.

See the complete guide: DARTER - overview and pipeline →


Create your R project

An R project collects all your scripts, output files and settings in one folder. Each study should have its own project.

Note

What does a project actually do? A project is first of all just a folder - you still save your own files in it (in R/, datasets/, output/). The point is the .Rproj file: when you open the project, RStudio automatically sets the working directory to the folder where .Rproj lives. So getwd() always points to your project folder, and you can use relative paths (datasets/cohort.rds) instead of writing the full path or setwd("E:/...") at the top of every script. Each project also keeps its own settings and history separate, so studies don’t get mixed up.

  1. Open RStudio
  2. File → New Project → New Directory → New Project
  3. Give the project a name and choose a location under your workspace folder
  4. Click Create Project

Run getwd() now and you get the path to your project, e.g. E:/workdata/[projectnumber]/workspaces/[your-name]/[your-project-name]

Note

Do not save workspace RStudio asks at close: “Save workspace image?” - always choose No. Set it permanently: Tools → Global Options → General → “Save workspace to .RData” → Never.

Tip

Make RStudio start faster on DST Disable the packages panel: Tools → Global Options → Packages → uncheck “Enable packages pane”. You use library() and install.packages() directly in the code anyway.


DST documentation

OUTSIDE DST - TIMES (variable descriptions) Look up what a variable in a register means: dst.dk - TIMES documentation

ON DST - The Star on the desktop The Star opens DST’s format table guide - used to find SAS files that translate codes to text (e.g. municipality numbers to municipality names). More: 14b - Format tables

Encountered a function you do not recognise? Look it up in 14a - Functions: overview.


First session - quick checklist

  1. Open your project: File → Open Project → your .Rproj in the workspace folder, or double-click the .Rproj file in File Explorer.
  2. Verify: getwd() runs without error.

Log off correctly when you are done

Closing the RStudio window or simply disconnecting is not enough. You are sitting on two desktops nested inside each other plus a browser session - close all three, otherwise your session keeps running and holds the server’s RAM (see Mind the RAM).

Log off in this order:

  1. Sign out of the Python/R desktop (the inner desktop where RStudio runs) - use Sign out in the Start menu, not just closing the window.
  2. Sign out of the FSE Windows desktop (the outer choice desktop) - Sign out again. (skip this step if you went straight to the Python/R desktop)
  3. Log out of remote.dst.dk in your browser.

So: Sign out twice (once per desktop) plus log out in the browser.


From here

You are now logged in and set up. The rest of the guide teaches you to work with data:

Back to top