I am trying to create a link in a subsection of the main report to redirect to a subsection of the Appendix in an .Rnw file in Studio. Here is what I have tried. Although I do not get an error, and it produces a PDF file, there does not seem to be the intended link:
\documentclass{article}
\usepackage{float, hyperref}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
\SweaveOpts{concordance=TRUE}
\title{The Title}
\maketitle
<<options, echo=FALSE>>=
library(knitr)
opts_chunk$set(cache=TRUE)
@
\section*{Introduction}
I have my introduction here.
\subsection*{Subsection}
I have my subsection here. I would like to link to the subsection of the appendix at the end of this sentence; how can I do that See ~\ref{subsec:firstPoint}.
\section*{Conclusion}
I have my conclusion here.
\section*{Appendix}
\subsection*{First Point}
\label{subsec:firstPoint}
Here is where I want my link above to point to.
\end{document}
Any advice on how to achieve this link would be greatly appreciated!