Skip to content

Commit

Permalink
use r+f string
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Mar 8, 2021
1 parent 3994a58 commit f73fb10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pre_commit/languages/r.py
Expand Up @@ -92,7 +92,9 @@ def install_environment(
cmd_output_b(
'Rscript', '--vanilla', '-e',
f"""\
prefix_dir <- "{os.path.normpath(prefix.prefix_dir)}"
prefix_dir <- "{
prefix.prefix_dir.encode('unicode_escape').decode()
}"
missing_pkgs <- setdiff(
"renv", unname(installed.packages()[, "Package"])
)
Expand Down

0 comments on commit f73fb10

Please sign in to comment.